1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-03-21 23:52:12 +01:00
test-reporter/__tests__/__snapshots__/dotnet-nunit-legacy.test.ts.snap
2025-03-05 01:14:46 -06:00

125 lines
4.6 KiB
Text

// 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,
}
`;