-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xharness] Improve parsing of NUnitV2 xml reports to fix an issue wit…
…h failures in parameterized tests. (#9259) We weren't properly reporting all failures when there were multiple failures in parameterized tests, because we'd incorrectly skip too many xml nodes when we were looking for the next test failure.
- Loading branch information
1 parent
7e9a60d
commit 691e8ea
Showing
4 changed files
with
106 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/TestCaseFailures.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<test-results name="mtouch.dll" total="440" errors="4" failures="19" not-run="6" inconclusive="0" ignored="6" skipped="0" invalid="0" date="2020-07-31" time="03:17:46"> | ||
<environment nunit-version="3.6.0.0" clr-version="4.0.30319.42000" os-version="Unix 19.5.0.0" platform="Unix" cwd="..." machine-name="..." user="..." user-domain="..." /> | ||
<culture-info current-culture="en-US" current-uiculture="en-US" /> | ||
<test-suite type="Assembly" name="mtouch.dll" executed="True" result="Failure" success="False" time="3393.268" asserts="7560"> | ||
<properties> | ||
<property name="_PID" value="72474" /> | ||
<property name="_APPDOMAIN" value="domain-" /> | ||
</properties> | ||
<failure> | ||
<message><![CDATA[One or more child tests had errors]]></message> | ||
<stack-trace /> | ||
</failure> | ||
<results> | ||
<test-suite type="SetUpFixture" name="[default namespace]" executed="True" result="Failure" success="False" time="3393.255" asserts="7560"> | ||
<failure> | ||
<message><![CDATA[One or more child tests had errors]]></message> | ||
<stack-trace /> | ||
</failure> | ||
<results> | ||
<test-suite type="TestSuite" name="Xamarin" executed="True" result="Failure" success="False" time="3393.250" asserts="7560"> | ||
<failure> | ||
<message><![CDATA[One or more child tests had errors]]></message> | ||
<stack-trace /> | ||
</failure> | ||
<results> | ||
<test-suite type="TestFixture" name="MTouch" executed="True" result="Failure" success="False" time="2720.409" asserts="576"> | ||
<failure> | ||
<message><![CDATA[One or more child tests had errors]]></message> | ||
<stack-trace /> | ||
</failure> | ||
<results> | ||
<test-suite type="ParameterizedTest" name="FastDev_LinkAll" executed="True" result="Failure" success="False" time="16.633" asserts="2"> | ||
<failure> | ||
<message><![CDATA[One or more child tests had errors]]></message> | ||
<stack-trace /> | ||
</failure> | ||
<results> | ||
<test-case name="Xamarin.MTouch.FastDev_LinkAll(iOS)" executed="True" result="Failure" success="False" time="8.162" asserts="1"> | ||
<failure> | ||
<message>message</message> | ||
<stack-trace>stacktrace</stack-trace> | ||
</failure> | ||
</test-case> | ||
</results> | ||
</test-suite> | ||
<test-case name="Xamarin.MTouch.RebuildWhenReferenceSymbolsInCode" executed="True" result="Failure" success="False" time="0.443" asserts="0"> | ||
<failure> | ||
<message>message</message> | ||
<stack-trace>stacktrace</stack-trace> | ||
</failure> | ||
</test-case> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</test-results> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Pipeline scripts tests failed on VSTS: device tests iOS (DDFun) 🔥
The tests of the scripts used in the pepeline failed. The build was cancelled.
Pipeline on Agent
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests iOS (DDFun) 🔥
Failed provisioning profiles.
Pipeline on Agent
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests iOS (DDFun) 🔥
Failed installing dependencies.
Pipeline on Agent
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Pipeline scripts tests failed on VSTS: device tests tvOS (DDFun) 🔥
The tests of the scripts used in the pepeline failed. The build was cancelled.
Pipeline on Agent
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests tvOS (DDFun) 🔥
Failed provisioning profiles.
Pipeline on Agent
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Device tests failed on VSTS: device tests tvOS (Cambridge) ❌
Device tests failed on VSTS: device tests tvOS (Cambridge).
Test results
150 tests' device not found, 0 tests passed.
Pipeline on Agent XI-MANTIS
691e8ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Jenkins job (on internal Jenkins) succeeded
✅ Provisioning succeeded
✅ Build succeeded
✅ Packages built successfully
View packages
✅ API Diff (from stable)
✅ API Diff (from PR only) (no change)
✅ Generator Diff (no change)
✅ Test run succeeded