You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a few test methods, assuming a normal setup
Configure a testsuite in your phpunit.xml with a testsuite name of "test repro" (see below for an example)
Click "Run All Tests" from the Visual Studio Testing window
Outcome
Notice how the results of your entire test suite are not updated/reported.
It seems that the --testsuite argument value (the testsuite name) isn't put in quotes, which is somehow leading to the results not being shown in VSCode. See output below. Running individual tests works fine. Renaming the testsuite to "testRepro" fixes the issue.
Expected outcome
All the tests that are found by VSCode are updated (e.g. the result of the test is being shown both inline in code (in the case of errors) and in the Testing window).
> php -d display_errors=on "<my path>\vendor\bin\phpunit" -c phpunit.xml --teamcity --colors=never --testsuite test repro
PHPUnit 10.5.2 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.2
Configuration: <my path>\phpunit.xml
Unexpected: test 'testAbc' has started (but was not listed in Test Window)
Unexpected: test 'testAbc' has passed (but was not listed in Test Window)
Unexpected: test 'testGhi' has started (but was not listed in Test Window)
Unexpected: test 'testGhi' has passed (but was not listed in Test Window)
Environment
Values
Extension version
v4.12.0
Operating system
Windows 11
PHPUnit
10.5.2
VSCode
1.84.2
The text was updated successfully, but these errors were encountered:
I wrapped the value in --testsuite with quotes like --testsuite 'test repro' and released a new version that's on its way. I'll close this but please reopen if it doesn't work.
Repro
Outcome
Notice how the results of your entire test suite are not updated/reported.
It seems that the
--testsuite
argument value (the testsuite name) isn't put in quotes, which is somehow leading to the results not being shown in VSCode. See output below. Running individual tests works fine. Renaming the testsuite to "testRepro" fixes the issue.Expected outcome
All the tests that are found by VSCode are updated (e.g. the result of the test is being shown both inline in code (in the case of errors) and in the Testing window).
Logs / output / settings
The text was updated successfully, but these errors were encountered: