connor4312 / nodejs-testing

VS Code integration for node:test native tests
MIT License
48 stars 7 forks source link

how do I (auto)run test continously like `node --test --watch` for TDD sessions? #44

Open iamstarkov opened 3 months ago

iamstarkov commented 3 months ago

I can configure extension add --watch to parameters, but ive tried it and it doesn't seem to work as in it doesn't rerun tests when I change the file. Regardless, I dont always need to run tests in watch mode, so Id like to have an option or a toggle to do it on demand from ui.

Im not sure it is a 100% fit, but it would seem that vscode's "Continuous Run" api fits the bill. There is even a button to toggle the continuous run.

I'm not sure if this feature is supported and I missed how to enable it or integration with continuous run api requires extra work on behalf of maintainers.

Screenshot 2024-06-25 at 14 37 16

https://github.com/microsoft/vscode/issues/134941 https://github.com/microsoft/vscode/issues/134941

iamstarkov commented 2 months ago

status update i forgot about --watch in the settings and my tests had run for 170 000 seconds in a row or for about two days

iamstarkov commented 2 months ago

@connor4312 what is your opinion on the feature request? am I missing something or is it indeed missing? are you open to pull-request to implement it?