From 0ca33bce3ae465b208c40ccb8d41c568ae854927 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 6 Jun 2022 23:10:59 +0200 Subject: [PATCH] Add one more xunit example file --- python/test/files/xunit/README.md | 1 + .../test/files/xunit/mstest/fixie.junit-xml | 26 ++++++ python/test/files/xunit/mstest/fixie.results | 93 +++++++++++++++++++ python/test/files/xunit/mstest/fixie.xml | 35 +++++++ 4 files changed, 155 insertions(+) create mode 100644 python/test/files/xunit/README.md create mode 100644 python/test/files/xunit/mstest/fixie.junit-xml create mode 100644 python/test/files/xunit/mstest/fixie.results create mode 100644 python/test/files/xunit/mstest/fixie.xml diff --git a/python/test/files/xunit/README.md b/python/test/files/xunit/README.md new file mode 100644 index 00000000..c83fd6a9 --- /dev/null +++ b/python/test/files/xunit/README.md @@ -0,0 +1 @@ +[mstest/fixie.xml](https://raw.githubusercontent.com/fixie/fixie/42b43dc6cc57476958eea8b507aa9d0d72cedae6/src/Fixie.Tests/Reports/XUnitXmlReport.xml) diff --git a/python/test/files/xunit/mstest/fixie.junit-xml b/python/test/files/xunit/mstest/fixie.junit-xml new file mode 100644 index 00000000..dc08dec5 --- /dev/null +++ b/python/test/files/xunit/mstest/fixie.junit-xml @@ -0,0 +1,26 @@ + + + + + + + + Expected: System.String +Actual: System.Int32 at [genericTestClassForStackTrace].ShouldBeString[T](T genericArgument) in [fileLocation]:line # + + + + + 'Fail' failed! at [testClassForStackTrace].Fail() in [fileLocation]:line # + + + Expected: 2 +Actual: 1 at [testClassForStackTrace].FailByAssertion() in [fileLocation]:line # + + + + + + + + diff --git a/python/test/files/xunit/mstest/fixie.results b/python/test/files/xunit/mstest/fixie.results new file mode 100644 index 00000000..88ab4f45 --- /dev/null +++ b/python/test/files/xunit/mstest/fixie.results @@ -0,0 +1,93 @@ +publish.unittestresults.ParsedUnitTestResults( + files=1, + errors=[], + suites=1, + suite_tests=7, + suite_skipped=1, + suite_failures=3, + suite_errors=0, + suite_time=8, + cases=[ + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[genericTestClass]', + test_name='ShouldBeString', + result='success', + message=None, + content=None, + time=1.234 + ), + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[genericTestClass]', + test_name='ShouldBeString', + result='success', + message=None, + content=None, + time=1.234 + ), + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[genericTestClass]', + test_name='ShouldBeString', + result='failure', + message='Expected: System.String\nActual: System.Int32', + content='Expected: System.String\nActual: System.Int32 at ' + '[genericTestClassForStackTrace].ShouldBeString[T](T genericArgument) ' + 'in [fileLocation]:line #', + time=1.234 + ), + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[testClass]', + test_name='Fail', + result='failure', + message="'Fail' failed!", + content="'Fail' failed! at [testClassForStackTrace].Fail() in " + "[fileLocation]:line #", + time=1.234 + ), + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[testClass]', + test_name='FailByAssertion', + result='failure', + message='Expected: 2\nActual: 1', + content='Expected: 2\nActual: 1 at ' + '[testClassForStackTrace].FailByAssertion() in [fileLocation]:line #', + time=1.234 + ), + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[testClass]', + test_name='Pass', + result='success', + message=None, + content=None, + time=1.234 + ), + publish.unittestresults.UnitTestCase( + result_file='mstest/fixie.xml', + test_file=None, + line=None, + class_name='[testClass]', + test_name='Skip', + result='skipped', + message='⚠ Skipped with attribute.', + content=None, + time=1.234 + ) + ] +) \ No newline at end of file diff --git a/python/test/files/xunit/mstest/fixie.xml b/python/test/files/xunit/mstest/fixie.xml new file mode 100644 index 00000000..77715ea6 --- /dev/null +++ b/python/test/files/xunit/mstest/fixie.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file