chiefmyron / phpunit-test-workbench

An extension to integrate PHPUnit with the native Test Explorer functionality within VS Code. Zero configuration required for common environment setups.
https://marketplace.visualstudio.com/items?itemName=chiefmyron.phpunit-test-workbench
MIT License
5 stars 2 forks source link

Renaming a test class causes child methods to be "undetected" until full refresh of tests #96

Closed chiefmyron closed 5 months ago

chiefmyron commented 5 months ago

A common use case is copying a test file, and then making modiciations to the new class. However, renaming a class in a test file will result in previously detected test methods being "undetected". The only way to resolve this is to refresh the test explorer (i.e. force a full reparsing of the entire test environment).

Need to add better detection to shift test method TestItems over to a new parent class TestItem when a class is renamed.