Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Feature Request: Kill Running Test #1047

Closed
tylerstillwater opened this issue Jun 21, 2017 · 8 comments
Closed

Feature Request: Kill Running Test #1047

tylerstillwater opened this issue Jun 21, 2017 · 8 comments

Comments

@tylerstillwater
Copy link
Contributor

It is not uncommon for a misbehaving test to run for a long time, or indefinitely. It would be fantastic if there was a command/button/shortcut/some way to kill the currently running test.

@ramya-rao-a
Copy link
Contributor

I am little busy at work, and may not be able to get to this any time soon, but this is a very useful feature to have.

PRs are welcome.

I can help out pointing people in the right direction if needed

@tylerstillwater
Copy link
Contributor Author

tylerstillwater commented Aug 12, 2017 via email

@ramya-rao-a
Copy link
Contributor

There are 2 ways that I can think of to do this

  • Have a status bar item that shows the status "Cancel Running Tests" that shows up when tests take say more than 5 seconds. Clicking on the status bar item should cancel the test.
  • Another way is to use the integrated terminal to run the tests, maybe via tasks. That way the user can just hit Ctrl+C to cancel the process as everything in the terminal is interactive

@tylerstillwater
Copy link
Contributor Author

tylerstillwater commented Aug 12, 2017 via email

@ramya-rao-a
Copy link
Contributor

There already is a status bar that appears when the tests are run on save. Clicking on it shows the test output.

Look at the goCheck.ts file.

@tylerstillwater
Copy link
Contributor Author

tylerstillwater commented Aug 17, 2017 via email

@ramya-rao-a
Copy link
Contributor

This feature is out in the latest update to the Go extension (0.6.82) thanks to @tylerb!

@tylerstillwater
Copy link
Contributor Author

Hooray! 🎉 Thanks @ramya-rao-a!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants