mirror of
https://github.com/dorny/test-reporter.git
synced 2026-03-22 07:52:14 +01:00
Add support for NUnit 2.6 test output
This commit is contained in:
parent
41662db5ca
commit
fe58594536
8 changed files with 606 additions and 0 deletions
125
__tests__/__snapshots__/dotnet-nunit-legacy.test.ts.snap
Normal file
125
__tests__/__snapshots__/dotnet-nunit-legacy.test.ts.snap
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`dotnet-nunit-legacy tests report from ./reports/dotnet test results matches snapshot 1`] = `
|
||||
TestRunResult {
|
||||
"path": "fixtures/dotnet-nunit-legacy.xml",
|
||||
"suites": [
|
||||
TestSuiteResult {
|
||||
"groups": [
|
||||
TestGroupResult {
|
||||
"name": "CalculatorTests",
|
||||
"tests": [
|
||||
TestCaseResult {
|
||||
"error": undefined,
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Is_Even_Number(2)",
|
||||
"result": "success",
|
||||
"time": 0.001,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "at NUnitLegacyTests.CalculatorTests.Is_Even_Number(Int32 i) in C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\NUnitLegacyTests\\CalculatorTests.cs:line 61
|
||||
",
|
||||
"line": undefined,
|
||||
"message": " Expected: True
|
||||
But was: False
|
||||
",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Is_Even_Number(3)",
|
||||
"result": "failed",
|
||||
"time": 0.002,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "at MyLibrary.Calculator.Div(Int32 a, Int32 b) in C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\MyLibrary\\Calculator.cs:line 7
|
||||
at NUnitLegacyTests.CalculatorTests.Exception_In_TargetTest() in C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\NUnitLegacyTests\\CalculatorTests.cs:line 33
|
||||
",
|
||||
"line": undefined,
|
||||
"message": "System.DivideByZeroException : Attempted to divide by zero.",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Exception_In_TargetTest",
|
||||
"result": "failed",
|
||||
"time": 0.028,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "at NUnitLegacyTests.CalculatorTests.Exception_In_Test() in C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\NUnitLegacyTests\\CalculatorTests.cs:line 39
|
||||
",
|
||||
"line": undefined,
|
||||
"message": "System.Exception : Test",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Exception_In_Test",
|
||||
"result": "failed",
|
||||
"time": 0.002,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "at NUnitLegacyTests.CalculatorTests.Failing_Test() in C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\NUnitLegacyTests\\CalculatorTests.cs:line 27
|
||||
",
|
||||
"line": undefined,
|
||||
"message": " Expected: 3
|
||||
But was: 2
|
||||
",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Failing_Test",
|
||||
"result": "failed",
|
||||
"time": 0.016,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "",
|
||||
"line": undefined,
|
||||
"message": "couldn't run test for some reason",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Inconclusive_Test",
|
||||
"result": "skipped",
|
||||
"time": 0.002,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": undefined,
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Passing_Test",
|
||||
"result": "success",
|
||||
"time": 0,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": undefined,
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Passing_Test_With_Description",
|
||||
"result": "success",
|
||||
"time": 0,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "",
|
||||
"line": undefined,
|
||||
"message": "Skipped",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Skipped_Test",
|
||||
"result": "skipped",
|
||||
"time": NaN,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": {
|
||||
"details": "",
|
||||
"line": undefined,
|
||||
"message": "Test exceeded Timeout value of 1ms",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "NUnitLegacyTests.CalculatorTests.Timeout_Test",
|
||||
"result": "failed",
|
||||
"time": 0.027,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"name": "C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\NUnitLegacy.sln.C:\\Users\\james_t\\source\\repos\\NUnitLegacy\\NUnitLegacyTests\\bin\\Debug\\NUnitLegacyTests.dll.NUnitLegacyTests",
|
||||
"totalTime": undefined,
|
||||
},
|
||||
],
|
||||
"totalTime": 0,
|
||||
}
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue