Build/Test Issues

Ignored tests not appearing in RawResults.xml written by console runner

Started by ecargo on 1,758 views

If I mark a fixture as ignored in Visual Studio, and then run the tests in the NCrunch console runner, I see the following in the RawResults,xml file:

<fixture name="<redacted>">
  <wasRun>False</wasRun>
  <isIgnored>True</isIgnored>
</fixture>

However, when I ignore a single test within a fixture that is not ignored in its entirety, I can't find any record of that test existing in RawResults.xml. I would have thought that it would appear, but with a similar <isIgnored> element.

How can I get a list of ignored tests from the console runner output?

Update with further info:
* The TestResultsInNUnitFormat.xml file claims that the test ran.
* The AllResults.html file claims that the test was ignored, but then lists the test output, perhaps from the previous run?

Edited

Hi, thanks for posting.

I've taken a look at the code involved here, and I can't see a way to do this with what we're exporting at the moment.

It's supposed to be in RawResults.xml, but it looks to have been omitted unintentionally. I've logged a defect to get this fixed in the next build.
I can confirm that this is fixed, thanks!

Post a reply

Log in to reply.