mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
96 lines
2.6 KiB
Text
96 lines
2.6 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`dart-json tests matches report snapshot 1`] = `
|
|
Object {
|
|
"annotations": Array [
|
|
Object {
|
|
"annotation_level": "failure",
|
|
"end_line": 13,
|
|
"message": "Expected: <2>
|
|
Actual: <1>
|
|
|
|
|
|
package:test_api expect
|
|
test\\\\main_test.dart 13:9 main.<fn>.<fn>.<fn>
|
|
",
|
|
"path": "test/main_test.dart",
|
|
"start_line": 13,
|
|
"title": "[test\\\\main_test.dart] Test 1 Test 1.1 Failing test",
|
|
},
|
|
Object {
|
|
"annotation_level": "failure",
|
|
"end_line": 2,
|
|
"message": "Exception: Some error
|
|
|
|
package:darttest/main.dart 2:3 throwError
|
|
test\\\\main_test.dart 17:9 main.<fn>.<fn>.<fn>
|
|
",
|
|
"path": "lib/main.dart",
|
|
"start_line": 2,
|
|
"title": "[test\\\\main_test.dart] Test 1 Test 1.1 Exception in target unit",
|
|
},
|
|
Object {
|
|
"annotation_level": "failure",
|
|
"end_line": 24,
|
|
"message": "Exception: Some error
|
|
|
|
test\\\\main_test.dart 24:7 main.<fn>.<fn>
|
|
",
|
|
"path": "test/main_test.dart",
|
|
"start_line": 24,
|
|
"title": "[test\\\\main_test.dart] Test 2 Exception in test",
|
|
},
|
|
Object {
|
|
"annotation_level": "failure",
|
|
"end_line": 5,
|
|
"message": "TimeoutException after 0:00:00.000001: Test timed out after 0 seconds.
|
|
|
|
dart:isolate _RawReceivePortImpl._handleMessage
|
|
",
|
|
"path": "test/second_test.dart",
|
|
"start_line": 5,
|
|
"title": "[test\\\\second_test.dart] Timeout test",
|
|
},
|
|
],
|
|
"summary": "### fixtures/dart-json.json
|
|
|
|
**6** tests were completed in **3.760s** with **1** passed, **1** skipped and **4** failed.
|
|
|
|
| Result | Suite | Tests | Time | Passed ✔️ | Skipped ✖️ | Failed ❌ |
|
|
| :---: | :--- | ---: | ---: | ---: | ---: | ---: |
|
|
| ❌ | [test\\\\main_test.dart](#ts-0-test-maintest-dart) | 4 | 74ms | 1 | 0 | 3 |
|
|
| ❌ | [test\\\\second_test.dart](#ts-1-test-secondtest-dart) | 2 | 51ms | 0 | 1 | 1 |
|
|
|
|
# Test Suites
|
|
|
|
## <a id=\\"user-content-ts-0-test-maintest-dart\\" href=\\"#ts-0-test-maintest-dart\\">test\\\\main_test.dart</a> ❌
|
|
|
|
### Test 1
|
|
|
|
| Result | Test | Time |
|
|
| :---: | :--- | ---: |
|
|
| ✔️ | Test 1 Passing test | 36ms |
|
|
|
|
### Test 1 Test 1.1
|
|
|
|
| Result | Test | Time |
|
|
| :---: | :--- | ---: |
|
|
| ❌ | Test 1 Test 1.1 Failing test | 20ms |
|
|
| ❌ | Test 1 Test 1.1 Exception in target unit | 6ms |
|
|
|
|
### Test 2
|
|
|
|
| Result | Test | Time |
|
|
| :---: | :--- | ---: |
|
|
| ❌ | Test 2 Exception in test | 12ms |
|
|
|
|
## <a id=\\"user-content-ts-1-test-secondtest-dart\\" href=\\"#ts-1-test-secondtest-dart\\">test\\\\second_test.dart</a> ❌
|
|
|
|
| Result | Test | Time |
|
|
| :---: | :--- | ---: |
|
|
| ❌ | Timeout test | 37ms |
|
|
| ✖️ | Skipped test | 14ms |
|
|
",
|
|
"title": "Dart tests ❌",
|
|
}
|
|
`;
|