phpstorm-plugin
phpstorm-plugin copied to clipboard
Running Tests on Windows PHPStorm
I have an issue with running tests on windows.
When i try to run the test it will generate a call
D:\wamp64\bin\php\php7.1.7\php.exe bin/atoum.bat --use-tap-report
but it will output this
@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/../vendor/atoum/atoum/bin/atoum
php "%BIN_TARGET%" %*
I think it is trying to execute the bat as a phar? because if i replace the bat with the phar it would work.
So its either suppose to run the phar with php command in the front OR just execute bin/atoum.bat without the php interpreter infront.
Same for me:
Testing started at 15:01 ...
php vendor/bin/atoum.bat --use-tap-report -f tests/Test.php
@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/../atoum/atoum/bin/atoum
php "%BIN_TARGET%" %*
No tests were found!
Command is:
php vendor/bin/atoum.bat --use-tap-report -f tests/Test.php
But command should be (without 'php'):
vendor/bin/atoum.bat --use-tap-report -f tests/Test.php