stuartherbert / sublime-phpunit

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

Test class name causes "Cannot find file containing unit tests" #39

Open trickleup opened 10 years ago

trickleup commented 10 years ago

Thanks for a great plugin.

I'm running unit tests with sublime-phpunit for ST3 which mostly works great. The one issue I'm having is with some integration tests that don't correspond to specific class files. I.e. for unit tests I have MyClass and MyClassTest, but then I have a class MyIntegrationTests, but there is no class called MyIntegration (by design, or at least, I'm not in a position to change the structure freely). I'm unable to run these tests from sublime, because the context menu/command palette "Run Tests..." option now says

Cannot find file containing unit tests

The current file in the editor, when right-clicking, is the file with the test cases (i.e. MyIntegrationTests. Is there a workaround, or a way to override this behavior, and just run the tests in the file?

stuartherbert commented 9 years ago

Hi,

I've been unable to reproduce this problem. If you're still having this issue, could you give me a bit more information?

Many thanks, Stu