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

Testsuites not applied in TestExplorer

Open tobiasbhn opened this issue 2 years ago • 3 comments
trafficstars

Thank you for all the work on this extension. However, I am having trouble organizing my tests in any way. In the readme of this extension it says "Shows a Test Explorer in the Test view in VS Code's sidebar with all detected tests and suites and their state" - which to me suggests that the tests can be organized in some way into test suites. Despite my definition of different test suites in phpunit.xml, this classification is not reflected in the Test Explorer. Am I missing something? Another way of organizing the tests using the @group annotation does not seem to work either. What is the intended way to organize the tests? (besides the file structure)

https://phpunit.readthedocs.io/en/9.5/organizing-tests.html https://phpunit.readthedocs.io/en/9.5/annotations.html#group

image defining 'foobar' using the group annotation

image defining 'foobar' using a testsuite

image still no tests found in 'foobar' search

tobiasbhn avatar Dec 15 '22 09:12 tobiasbhn

I am also having this issue - my monolith application has 2500+ tests, being unable to execute them in their suites is frustrating, especially given how well this extension handles everything else.

rickpelletier avatar Jan 11 '24 23:01 rickpelletier