-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel test does not terminate process #337
Comments
Hi Tobias, as far as I understand, the process should indeed be killed immediately by invoking Process.Kill(). Couple of things to check:
Summarizing, I have no idea why this would work when debugging, but not running (and would expect it to be the other way, if at all)... |
Hi Christian, I installed your provided VSIX Version 0.18.0.1475. Please find the attached Test log output. I still observe that the process does not terminate when I start the test as a "normal" run. When I abort a test run in "debug" mode it terminates. Thank you for your support. |
Hi Christian,
I use GoogleTestAdapter 0.18.0. I set "Terminate process on cancel" to "True".
When I do a Debug-Run of my test I can terminate the test execution and this results in termination of the running process as expected.
However when I do a "normal" Run of my test and I terminate the test execution the process is not terminated and continues to run in the background while the Test Explorer already shows that the test has been canceled. Is my configuration somehow wrong or do I have the wrong assumption that the process should also terminate on cancel?
I took a quick look into the code (GoogleTestAdapter/GoogleTestAdapter/Core/Runners/SequentialTestRunner.cs, l. 75 ff.) but did not find anything suspicious.
Any suggestions are appreciated. Hope to hear from you.
Cheers,
Tobias
The text was updated successfully, but these errors were encountered: