[Flow] Unit Testing
Alexander Berl
a.berl at outlook.com
Mon Dec 8 10:50:59 CET 2014
That Autoloader is from PHPUnit 3.x, in 4.x the folder structure is as
in your screenshot. I noticed you can also use the composer Autoloader
"Packages\Libraries\autoload.php".
Also, you can remove that "Alternative configuration file" from your Run
configuration. That would only make sense if you could also override the
Bootloader script (providing TestRunner option "--bootstrap [filename]"
doesn't work, because it still appends the bootstrap you set in the
settings), then you could create a functional and unit test run
configuration.
Other than the IntelliJ missing support for PHPUnit 4.x in older
versions nothing should stop you from directly running any single File
or folder structure as (Unit/Functional)Test: Rightclick + Run
Regards,
Alexander
Am 07.12.2014 um 13:44 schrieb Carsten Bleicker:
> I also do not have such an autoloader script in the path you told me.
> https://www.dropbox.com/s/tp9ekx53x4zgryu/Bildschirmfoto%202014-12-07%20um%2013.43.02.png?dl=0
>
> My complete set of options:
> https://www.dropbox.com/s/pz5g1nuvmpjhag9/Bildschirmfoto%202014-12-07%20um%2013.25.04.png?dl=0
> https://www.dropbox.com/s/2wj0nym7fc00be8/Bildschirmfoto%202014-12-07%20um%2013.24.41.png?dl=0
> https://www.dropbox.com/s/gntxsg0lc41lv6r/Bildschirmfoto%202014-12-07%20um%2013.25.28.png?dl=0
>
>
> ----------------------
>
> 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 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