stuartherbert / sublime-phpunit

PHPUnit Support for Sublime Text 2
https://github.com/stuartherbert/sublime-phpunit
Other
103 stars 20 forks source link

Allows users to run tests on test or class files #23

Closed adri closed 11 years ago

adri commented 11 years ago

phpunit_test_this_class command runs now also on test files (not only on classes).

stuartherbert commented 11 years ago

Help me understand this a bit more, please? Why would you have the unit tests in the same file as the code that you're testing?

adri commented 11 years ago

Sorry, probably I didn't explain well enough what it does.

I wanted a command which runs a test no matter if I'm on the test file or on the file which is being tested. Does that make sense?

The test and the class under test are still in separate files.

On 11.05.2013, at 16:53, Stuart Herbert notifications@github.com wrote:

Help me understand this a bit more, please? Why would you have the unit tests in the same file as the code that you're testing?

— Reply to this email directly or view it on GitHub.

stuartherbert commented 11 years ago

I've just pushed an update which I think achieves what you want. Have a look at the new phpunit_run_tests command, and let me know if that does the trick.

adri commented 11 years ago

Beautiful, thanks a lot!