Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Tests on Windows PHPStorm #95

Open
KoriSeng opened this issue Oct 22, 2017 · 1 comment
Open

Running Tests on Windows PHPStorm #95

KoriSeng opened this issue Oct 22, 2017 · 1 comment
Labels

Comments

@KoriSeng
Copy link

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.

@XSBen
Copy link

XSBen commented Feb 28, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants