When using the NUnit2Report XSLTs I came across some
strange results for the success rate calculation. I did
some adjustments to that calculation to produce
numbers that I think are correct now. The corresponding
diffs are attached to this posting.
The changes are:
"Errors" are now called "NotRun" since from my
experience the only way to get a count there is by
marking a test to be ignored. And if an exception is
thrown in a TestFixtureSetUp all tests are counted as
not run while an exception in a SetUp is counted as a
failure. The results will always show the expected values
total = tests run + tests not run
success rate = (tests run - tests failed) / tests run
tests that are not run are not taken into account which
allows for 100% success even if some tests are marked
as ignored
tests succeeded = tests run - tests failed
XSLT diffs