nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01924
[Bug 878955] [NEW] ParameterizedTest not in their parent test-suite when FixtureSetup fails in .xml result file
Public bug reported:
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>
** Affects: nunitv2
Importance: Undecided
Status: New
--
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:
New
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
Follow ups
References