Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Ignored tests not appearing in RawResults.xml written by console runner
ecargo
#1 Posted : Wednesday, November 18, 2020 1:42:29 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/17/2015(UTC)
Posts: 3
Location: New Zealand

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:

Code:
<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?
Remco
#2 Posted : Wednesday, November 18, 2020 8:01:35 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
bartj
#3 Posted : Wednesday, May 26, 2021 3:08:31 AM(UTC)
Rank: Member

Groups: Registered
Joined: 12/4/2013(UTC)
Posts: 26
Location: New Zealand

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
I can confirm that this is fixed, thanks!
1 user thanked bartj for this useful post.
Remco on 5/26/2021(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.041 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download