recca0120/vscode-phpunit

Tests status not updating in tests explorer

Samuel-VandePut opened this issue · 3 comments

Hello,

The extension works well but some tests status are not updated in the explorer. PHPUnit is working as I can read the result in the Output window.

image

The tests file is shown with a incorrect path 'App\Http\Controllers\Auth'. Do you have an idea where this come from?

Thank you !

could you execute phpunit --teamcity and paste output here?

Had a similar issue with test results sometimes showing and sometimes not...
Took me way to long to figure out 🤦

Solution
Use namespaces in test files.

Explanation attempt
I hadn't used namespaces in my test files.
In the test view they had some other namespace I used somewhere else.
I assume the test extension now can't match the test result to the actual file. 🤔

try version 3.0.33, this extension can parse test cases without namespace