mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Add annotations support to dotnet-trx
This commit is contained in:
parent
6f32e41222
commit
c4b64b0cf4
2 changed files with 77 additions and 6 deletions
|
|
@ -2,7 +2,36 @@
|
|||
|
||||
exports[`dotnet-trx tests matches report snapshot 1`] = `
|
||||
Object {
|
||||
"annotations": Array [],
|
||||
"annotations": Array [
|
||||
Object {
|
||||
"annotation_level": "failure",
|
||||
"end_line": 9,
|
||||
"message": "System.DivideByZeroException : Attempted to divide by zero.",
|
||||
"path": "DotnetTests.Unit/Calculator.cs",
|
||||
"start_line": 9,
|
||||
"title": "[DotnetTests.XUnitTests.CalculatorTests] Exception_In_TargetTest",
|
||||
},
|
||||
Object {
|
||||
"annotation_level": "failure",
|
||||
"end_line": 39,
|
||||
"message": "System.Exception : Test",
|
||||
"path": "DotnetTests.XUnitTests/CalculatorTests.cs",
|
||||
"start_line": 39,
|
||||
"title": "[DotnetTests.XUnitTests.CalculatorTests] Exception_In_Test",
|
||||
},
|
||||
Object {
|
||||
"annotation_level": "failure",
|
||||
"end_line": 27,
|
||||
"message": "Assert.Equal() Failure
|
||||
|
||||
Expected: 3
|
||||
|
||||
Actual: 2",
|
||||
"path": "DotnetTests.XUnitTests/CalculatorTests.cs",
|
||||
"start_line": 27,
|
||||
"title": "[DotnetTests.XUnitTests.CalculatorTests] Failing_Test",
|
||||
},
|
||||
],
|
||||
"summary": "**7** tests were completed in **1.061s** with **3** passed, **1** skipped and **3** failed.
|
||||
| Result | Suite | Tests | Time | Passed ✔️ | Failed ❌ | Skipped ✖️ |
|
||||
| :---: | :--- | ---: | ---: | ---: | ---: | ---: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue