← Back to team overview

nunit-core team mailing list archive

[Bug 878955] Re: ParameterizedTest not in their parent test-suite when FixtureSetup fails in .xml result file

 

** Changed in: nunitv2
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/878955

Title:
  ParameterizedTest not in their parent test-suite when FixtureSetup
  fails in .xml result file

Status in NUnit V2 Test Framework:
  Fix Committed

Bug description:
  When the FixtureSetup fails for a ParameterizedTest, I would expect
  that the test-case node would be under its test suite of
  type="ParameterizedTest".

  Here is what I'm seeing into the result xml files:

  
  When a ParameterizedTest passes, the xml result looks like this:

  <test-suite type="TestFixture" name="TestClass1" executed="True" result="Success" success="True" time="25.476" asserts="1">
    <results>
      <test-suite type="ParameterizedTest" name="TestCase1" executed="True" result="Success" success="True" time="4.746" asserts="0">
        <results>
          <test-case name="TestNamespace.TestClass1.TestCaseName1" executed="True" result="Success" success="True" time="1.242" asserts="6" />
          ...

  When fixture fails, the xml result looks like this:

  
  <test-suite type="TestFixture" name="Task_GetExistingOwner_SiteCodeConfiguredAndActiveTests" executed="True" result="Error" success="False" time="0.009" asserts="1">
    <failure>
      <message><![CDATA[SetUp : System.Exception : some error ]]></message>
      <stack-trace><![CDATA[at Some Assembly]]></stack-trace>
    </failure>
    <results>
      <test-case name="TestNamespace.TestClass1.TestCaseName1" executed="True" result="Failure" success="False" time="0.000" asserts="0">
        <failure>
          <message><![CDATA[TestFixtureSetUp failed in Somewhere]]></message>
          <stack-trace />
        </failure>
      </test-case>
      <test-suite type="ParameterizedTest" name="TestCase1" executed="True" result="Failure" success="False" time="0.000" asserts="0" />
    </results>

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/878955/+subscriptions


References