[Flow] Unit Testing

Alexander Berl a.berl at outlook.com
Sun Dec 7 12:57:33 CET 2014


Working with IntelliJ 13.1 and the PHP plugin installed I do the following:

In the Settings under PHPUnit you should set it up like this:

Select "Use custom loader" and set "Path to script" to your
$Projectbasedir$\Packages\Libraries\phpunit\phpunit\PHPUnit\Autoload.php
file.

For the Test Runner set the "Default configuration file" to
$Projectbasedir$\Build\BuildEssentials\PhpUnit\*Tests.xml
and "Default bootstrap file" to
$Projectbasedir$\Build\BuildEssentials\PhpUnit\*TestBootstrap.php

Replace * with either "Unit" or "Functional" depending on what kind of
tests you want to run. Unfortunately there is currently no way to have
multiple PHP Unit configurations. Maybe one could trick around that with
custom Run configurations, but that would not give you the integrated
Test results.

Regards,
Alexander


Am 07.12.2014 10:31, schrieb Carsten Bleicker:
> Is there any Information how to configure/use the files from BuildEssentials to run Tests with phpstorm?
> 
> Thanks
> Carsten
> 
> ----------------------
> 
> Carsten Bleicker
> Wülfingstraße 1
> 42477 Radevormwald
> 
> E-Mail:	carsten at bleicker.de
> Web:	www.bleicker.de
> Twitter:	@carstenbleicker
> Jabber:	cbleicker at jabber.ccc.de
> Telefon:	+49 (0)171-2690845
> 



More information about the Flow mailing list