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

When testing whole directory, only first file is tested #54

Closed
moldamil opened this issue Oct 8, 2013 · 3 comments
Closed

When testing whole directory, only first file is tested #54

moldamil opened this issue Oct 8, 2013 · 3 comments

Comments

@moldamil
Copy link

moldamil commented Oct 8, 2013

If I run Tester to test whole directory, only the first file in directory is tested.

I have folder named exampleTests containing two files ExampleTest.phpt and OtherTest.pthp. OtherTests.phpt is containing one failing test.
I run C:>php pathToTester\tester --tap -s -c php.ini pathToProject\exampleTests
Output is wrong, only ExampleTest.phpt is tested, all tests passed:
TAP version 13
ok tests\exampleTests\ExampleTest.phpt
1..1

I'm running on Win 7 64b, PHP 5.4.7, Nette Framework 2.0.12, Nette Tester v0.9.3

Thanks

@milo
Copy link
Member

milo commented Oct 8, 2013

Could you try to run Tester's tests?

php pathToTester\Tester\tester pathToTester\tests
# and
php pathToTester\Tester\tester.php pathToTester\tests

@milo
Copy link
Member

milo commented Oct 8, 2013

Btw. you wrote OtherTest.pthp. Is the file extension a typo, right?

@moldamil
Copy link
Author

moldamil commented Oct 8, 2013

Sorry, I just realized my OtherTests extension was misspelled, it really was pthp. I have fix that to .phpt and now it is working thank you!

@moldamil moldamil closed this as completed Oct 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants