I'm looking at NUnit XML output right now and wonder if it's possible to generate the output for failures only.
I mean, if a test passes OK, no XML output gets generated for it at all.
XSLT is not an option here. I don't want XML output for passed tests at all: if I don't need the details about the passed tests, I don't want the system to spend time generating those details.*
The idea is, XML output tend to be quite large if you have a lot of tests, but 80% of the time you're after failures anyway. For such cases, I'd like to run my tests in such a way that only information on failures get generated.
You can specify an XSLT file when you run the NUnit console runner to customise the generated file:
nunit-console /transform:failures.xslt nunit.tests.dll
The default XML file is generated using this XSLT file which can be easily modified to report only failures.
I posted this question to the NUnit Google Groups group, and Charlie Poole confirmed that there's no such option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With