← Back to team overview

nunit-core team mailing list archive

Re: [Question #238839]: NUnit result file result classification

 

Question #238839 on NUnit Framework changed:
https://answers.launchpad.net/nunit-3.0/+question/238839

    Status: Open => Answered

Charlie Poole proposed the following answer:
The result attribute can take on any of the values defined for the
ResultState enum. See
http://bazaar.launchpad.net/~nunit-core/nunitv2/trunk/view/head:/src/NUnitCore/interfaces/ResultState.cs

Charlie

On Fri, Nov 8, 2013 at 5:51 AM, Peter Brightman
<question238839@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Question #238839 on NUnit Framework changed:
> https://answers.launchpad.net/nunit-3.0/+question/238839
>
>     Status: Answered => Open
>
> Peter Brightman is still having a problem:
> Thanks for explaining. You wrote
>
> "Additionally, many report programs don't look at either of these. For
> example, to list failures they simply find all tests with a <failure>
> element."
>
> I do this as well if you look at my xpath expressions, but since a test-
> fixture can also fail and so will also have a <failure> childtag, not
> just test-case tags have to be examined but also test-suite tags (those
> of type TextFixture).
>
> But now my xpath seems to not work anymore, because i have the case
> where a test-suite failed, and so of course all the test-case tags have
> also a result="Failure" set. But the attribute result of the test-suite
> tag has not the value "Failure" but "Error". This means that this xpath
> expression doesn't work:
>
> <xsl:variable name="FixturesFailed" select="count(/test-results//test-
> suite[failure][@type='TestFixture' and @result='Failure'])"/>
>
> This relates to my initial question, what values can the attribute
> "result" take and what are the cases. When does it take the value
> "Failure" and when does it take the value "Error"? What's the difference
> between "Failure" and "Error"? Are there any other values that can
> occurr?
>
> Peter
>
> --
> You received this question notification because you are a member of
> NUnit Core Developers, which is an answer contact for NUnit Framework.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~nunit-core
> Post to     : nunit-core@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~nunit-core
> More help   : https://help.launchpad.net/ListHelp

-- 
You received this question notification because you are a member of
NUnit Core Developers, which is an answer contact for NUnit Framework.