[Flow] Unit Testing

Johannes Steu js at johannessteu.de
Sun Dec 7 13:39:23 CET 2014


Hey,

i always run single Tests/Packages via shell like this:

phpunit -c Build/BuildEssentials/PhpUnit/UnitTests.xml Packages/Application/Vendor.Package/Tests/Unit

If you run that commands in a ssh shell in phpstorm it is pretty much integrated but still no one-click-solution.
You could edit the UnitTests.xml to your needs for the time you do develop.

Johannes


> Am 07.12.2014 um 13:33 schrieb Carsten Bleicker <carsten at bleicker.de>:
> 
> Hi Alexander,
> i dont understand this bootstrap scipts.
> in my project settings i can configure the settings you told me:
> 1. autoload
> 2. configuration
> 3. bootstrap
> 
> 
> 
> i set configuration && bootstrap to unit testing files.
> so i can run the whole set of all unit tests.
> 
> but what about a single functional test or the whole set of functional tests?
> i cant configure the FunctionalTestBootstrap.php in this case. Only setting a configuration is possible.
> 
> 
> 
> 
> 
> ----------------------
> 
> 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
> 
> Am 07.12.2014 um 12:57 schrieb Alexander Berl <a.berl at outlook.com>:
> 
>> 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
>>> 
>> 
>> _______________________________________________
>> Flow mailing list
>> Flow at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
> 
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list