Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Killing hung runner should output partial results to aid debugging #664

Closed
oskarb opened this issue Jul 20, 2019 · 2 comments
Closed

Killing hung runner should output partial results to aid debugging #664

oskarb opened this issue Jul 20, 2019 · 2 comments

Comments

@oskarb
Copy link
Contributor

oskarb commented Jul 20, 2019

I have an NUnit that has now been sitting doing nothing for 15 hours. It has successfully completed 4 test cases. I know that it has began executing a fifth test case because the test writes a file at the beginning and I see that this has happened.

However, because the test case's output is not available until the test is complete, I cannot tell where exactly it is hanging. It can be noted that the test case should have a timeout of at most 10 minutes but because I don't know which test case it's stuck on, I cannot verify that the timeout really is set.

If I kill the NUnit console process, it terminates immediately without outputting any of the output from the currently running test. It also doesn't run the cleanup code in various teardown methods (which is necessary to reset various out-of-process data).

There should be a way to tell the nunit console runner process to abort all running test cases, perform teardown, and write the output of those test cases as expected, before it dies. As it is now, because I don't know which test case or how far it got, it's very difficult to understand what's happening.

Tests are not running in parallel. Framework 3.12, console runner 3.9 (just installed 3.10 so might launch a new run soon.).

@varnk
Copy link

varnk commented Jul 15, 2022

Surprised this request has been here for 3 years. I am running into a similar problem. I would like to either a) Be able to see in realtime which tests have run and passed/failed during the test run. Or b) trap Ctrl-C so that the test runner can abort the run and report the progress thus far in the console.

@CharliePoole CharliePoole added this to the 4.0 milestone Jul 15, 2022
@CharliePoole
Copy link
Member

Me too. :-)

Note that option (a) is already available using the various values of the --labels option - see the docs. However, this doesn't help if you are trying to debug an existing run, for which you didn't use that option.

This is related to #335 and #413, which propose alternative ways to resolve the same problem. Like them, it will require major changes (probably breaking) and so is a candidate for the 4.0 release.

@nunit nunit locked and limited conversation to collaborators Dec 14, 2024
@CharliePoole CharliePoole converted this issue into discussion #1532 Dec 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

4 participants