How do I get console output from AfterTestRun? #635
keegan-conlee-IM
started this conversation in
General
Replies: 1 comment
-
I can only reply to the NUnit question. Reqnroll uses the NUnit I have made a plain NUnit project (without Reqnroll) and it seems that if you use So based on that, I think the only chance is if you write the stuff into your own log file from the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running Reqnroll with NUnit. I know NUnit captures the console output during test cases in order to print it all at once after the test case is finished, so that parallel test runs don't clobber each other's output. Is it doing something simlar for the
AfterTestRun
hook? I can't see any console output that would have been generated there. Is there a way to change this behaviour?Alternatively, I'm using Allure, if anyone knows a way to attach data to Allure from the
AfterTestRun
hook (outside of an individual test case run), please let me know! I'm just doing some cleanup inAfterTestRun
and would like to be able to see the results of it somehow.Edit: I have verified the
AfterTestRun
hook is running. It's just not producing console output, either to the test detail summary in the Visual Studio test explorer or in any section of theOutput
pane, nor to the terminal if I rundotnet test
directly.Beta Was this translation helpful? Give feedback.
All reactions