intersystems-community / vscode-objectscript

InterSystems ObjectScript extension for Visual Studio Code
https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO
Other
107 stars 48 forks source link

Unit testing view (test tube) doesn't auto-refresh when unit test methods are renamed #1340

Closed isc-solon closed 5 months ago

isc-solon commented 5 months ago

I renamed the 2 Test* methods in a unit testing class (TestPerson() to TestPersonAccount() and TestPersonSQL() to TestPersonAccountSQL()). VS Code was confused by this in two spots. In the test tube view on the left it was showing a mix of the old method names and the new method names. In the unit test results tab on the lower right it was reporting that tests named Person (old) and PersonAccount (new) had run. After clicking the refresh icon at the top left the test tube view is correct. After that, running the tests again produces accurate output in the results tab.

isc-bsaviano commented 5 months ago

@isc-solon Can you try the vsix found here and let me know if this issue is resolved? Thanks.

isc-solon commented 5 months ago

Loaded the vsix. When I change the name of a method, it is immediately updated in the testing view on the left. And running the tests shows the updated name on the right. All good.

isc-bsaviano commented 5 months ago

Thanks for confirming Joel!