-
Notifications
You must be signed in to change notification settings - Fork 724
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
Update --labels switch with option to show real-time pass/fail results in console runner #1738
Comments
I like this idea, but I would modify/simplify it by preference:
Note that All is described as it is supposed to work already. There's currently a bug in that it runs at the end of a test. We should fix that. We should keep All so as not to break existing usage. The introduction of After means that we have to treat it as also meaning On. That is, if a test produces output, there should be a label before that output and another one after it, together with the test status.. The change should be made in both the console runner and nunitlite. Once we split the repos, this issue will need to be duplicated. The fix is relatively easy. Depending on who takes it, I can mentor them as needed. |
Hi @CharliePoole, Probably, I can start to work on the issue. thank you, |
Hi @constructor-igor - I've been meaning to poke you to see what you are up to. :-) As you probably figured out, all the code is in Console's TestEventHandler and in NUnitLite's TestRunner. There are tests for TestEventHandler but not for TestRunner. :-( I would first off fix the problem with All, which is supposed to be issued at the start of each test, not at the end. I think I broke this when I was fixing something else. Once All is correct, you've got Before, since it's intended to work the same way. After is the new thing, which is supposed to show status of the test. For that, I would use a combination of the
|
I am going to start from "All". |
You might try this sequence - a bit different order from my first suggestion:
|
Are you using the latest master? Can you build in the IDE? |
I cloned today and tried to build via build.cmd and IDE VS2013: same errors. |
Using VS 2015? |
I just got latest from master and ran |
I could build nunit solution on other computer. I investigate the issue and found, probably, same issues
I continue my investigation. |
Issue moved to nunit/nunit-console #24 via ZenHub |
When running a large number of test cases, it would be nice to see the pass/fail status of each case in the console as it completes. Using --labels=All, I can see which tests have run, but the results are not available until all cases have completed. Seeing which cases fail during a long scenario would allow me to investigate the failures while the remaining tests continue to run. It also has the advantage of knowing which cases passed/failed if the test scenario happens to crash and doesn't get to write the result file.
Per the discussion in #1735 some ideas are to modify --labels with the following options:
The text was updated successfully, but these errors were encountered: