AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

Test controller runs wrong tests #278

Closed kobmik closed 2 months ago

kobmik commented 2 months ago

In some cases, the test controller starts a test other than the one selected (single test inside a http file). Instead it runs a different test inside the file. After selecting the button "Refresh Tests", the controller starts to run the correct test again.

AnWeber commented 2 months ago

The reason for this is that the tests do not update as quickly. Unfortunately, I cannot save a reference to my object directly to a TestItem. For this reason, I build this up using the current line of the TestItem to my object. However, when changes are made in the http, this does not always match directly. I was currently able to work around this by actively saving. Then a refresh is automatically executed internally and the items fit together again. I'll see what I can do.

run_outdated_test

AnWeber commented 2 months ago

I now also listen for onDidChangeTextDocument in order to react to changes without saving them