sublime-phpunit icon indicating copy to clipboard operation
sublime-phpunit copied to clipboard

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

Open trickleup opened this issue 10 years ago • 1 comments

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?

trickleup avatar Mar 10 '14 22:03 trickleup

Hi,

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

  • What is the filename where the MyIntegrationTests class is defined?

Many thanks, Stu

stuartherbert avatar Jul 04 '15 12:07 stuartherbert