nette / tester

Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏
https://tester.nette.org
Other
457 stars 70 forks source link

Disable *.phpt scanning #40

Closed milo closed 11 years ago

milo commented 11 years ago

Scanning subdirectories for tests is sometimes problem. Imagine the application structure:

application   (current working dir)
|--- tests
|--- vendor
|--- |--- nette
|--- |--- |--- nette
|--- |--- |--- tester

and when you run the Tester without args, vendor dir is scanned and Nette and Tester tests are found and executed. This can be supprise mainly for newbies. And it can leeds to problems with database tests.

In my opinion, the base problem is in git/composer that always clone whole repo, but it cannot be easily solved.

I would disable a Tester's automatic directory scan when not passed as arg. In that case, old behaviour can be enabled by dot:

Tester\tester .
milo commented 11 years ago

Thank you.