Skip to content

Commit

Permalink
Persist test summary on disk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Xu authored and Zach Renner committed Jan 4, 2023
1 parent c9b3d0e commit 83b7f42
Show file tree
Hide file tree
Showing 19 changed files with 1,313 additions and 3,684 deletions.
22 changes: 11 additions & 11 deletions __tests__/__outputs__/dart-json.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical)
##  <a id="user-content-r0" href="#r0">fixtures/dart-json.json</a>
## :x: <a id="user-content-r0" href="#r0">fixtures/dart-json.json</a>
**6** tests were completed in **4s** with **1** passed, **4** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[test/main_test.dart](#r0s0)|1✔️|3❌||74ms|
|[test/second_test.dart](#r0s1)||1|1✖️|51ms|
###  <a id="user-content-r0s0" href="#r0s0">test/main_test.dart</a>
|[test/main_test.dart](#r0s0)|1:white_check_mark:|3:x:||74ms|
|[test/second_test.dart](#r0s1)||1:x:|1:no_entry_sign:|51ms|
### :x: <a id="user-content-r0s0" href="#r0s0">test/main_test.dart</a>
```
Test 1
✔️ Passing test
:white_check_mark: Passing test
Test 1 Test 1.1
Failing test
:x: Failing test
Expected: <2>
Actual: <1>
Exception in target unit
:x: Exception in target unit
Exception: Some error
Test 2
Exception in test
:x: Exception in test
Exception: Some error
```
###  <a id="user-content-r0s1" href="#r0s1">test/second_test.dart</a>
### :x: <a id="user-content-r0s1" href="#r0s1">test/second_test.dart</a>
```
Timeout test
:x: Timeout test
TimeoutException after 0:00:00.000001: Test timed out after 0 seconds.
✖️ Skipped test
:no_entry_sign: Skipped test
```
28 changes: 14 additions & 14 deletions __tests__/__outputs__/dotnet-trx.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
![Tests failed](https://img.shields.io/badge/tests-5%20passed%2C%205%20failed%2C%201%20skipped-critical)
##  <a id="user-content-r0" href="#r0">fixtures/dotnet-trx.trx</a>
## :x: <a id="user-content-r0" href="#r0">DotnetTests.XUnitTests</a>
**11** tests were completed in **1s** with **5** passed, **5** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[DotnetTests.XUnitTests.CalculatorTests](#r0s0)|5✔️|5❌|1✖️|118ms|
###  <a id="user-content-r0s0" href="#r0s0">DotnetTests.XUnitTests.CalculatorTests</a>
|[DotnetTests.XUnitTests.CalculatorTests](#r0s0)|5:white_check_mark:|5:x:|1:no_entry_sign:|118ms|
### :x: <a id="user-content-r0s0" href="#r0s0">DotnetTests.XUnitTests.CalculatorTests</a>
```
✔️ Custom Name
Exception_In_TargetTest
:white_check_mark: Custom Name
:x: Exception_In_TargetTest
System.DivideByZeroException : Attempted to divide by zero.
Exception_In_Test
:x: Exception_In_Test
System.Exception : Test
Failing_Test
:x: Failing_Test
Assert.Equal() Failure
Expected: 3
Actual: 2
✔️ Is_Even_Number(i: 2)
Is_Even_Number(i: 3)
:white_check_mark: Is_Even_Number(i: 2)
:x: Is_Even_Number(i: 3)
Assert.True() Failure
Expected: True
Actual: False
✔️ Passing_Test
✔️ Should be even number(i: 2)
Should be even number(i: 3)
:white_check_mark: Passing_Test
:white_check_mark: Should be even number(i: 2)
:x: Should be even number(i: 3)
Assert.True() Failure
Expected: True
Actual: False
✖️ Skipped_Test
✔️ Timeout_Test
:no_entry_sign: Skipped_Test
:white_check_mark: Timeout_Test
```
1,116 changes: 63 additions & 1,053 deletions __tests__/__outputs__/fluent-validation-test-results.md

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions __tests__/__outputs__/jest-junit.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed%2C%201%20skipped-critical)
##  <a id="user-content-r0" href="#r0">fixtures/jest-junit.xml</a>
## :x: <a id="user-content-r0" href="#r0">fixtures/jest-junit.xml</a>
**6** tests were completed in **1s** with **1** passed, **4** failed and **1** skipped.
|Test suite|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|[__tests__\main.test.js](#r0s0)|1✔️|3❌||486ms|
|[__tests__\second.test.js](#r0s1)||1|1✖️|82ms|
###  <a id="user-content-r0s0" href="#r0s0">__tests__\main.test.js</a>
|[__tests__\main.test.js](#r0s0)|1:white_check_mark:|3:x:||486ms|
|[__tests__\second.test.js](#r0s1)||1:x:|1:no_entry_sign:|82ms|
### :x: <a id="user-content-r0s0" href="#r0s0">__tests__\main.test.js</a>
```
Test 1
✔️ Passing test
:white_check_mark: Passing test
Test 1 › Test 1.1
Failing test
:x: Failing test
Error: expect(received).toBeTruthy()
Exception in target unit
:x: Exception in target unit
Error: Some error
Test 2
Exception in test
:x: Exception in test
Error: Some error
```
###  <a id="user-content-r0s1" href="#r0s1">__tests__\second.test.js</a>
### :x: <a id="user-content-r0s1" href="#r0s1">__tests__\second.test.js</a>
```
Timeout test
:x: Timeout test
: Timeout - Async callback was not invoked within the 1 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 1 ms timeout specified by jest.setTimeout.Error:
✖️ Skipped test
:no_entry_sign: Skipped test
```
Loading

0 comments on commit 83b7f42

Please sign in to comment.