+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This [Github Action](https://github.com/features/actions) displays test results from popular testing frameworks directly in GitHub.

✔️ Parses test results in XML or JSON format and creates nice report as Github Check Run
✔️ Parses test results in XML or JSON format and creates nice report as GitHub Check Run or GitHub Actions job summaries

✔️ Annotates code where it failed based on message and stack trace captured during test execution

Expand Down Expand Up @@ -149,9 +149,18 @@ jobs:
# Detailed listing of test suites and test cases will be skipped.
only-summary: 'false'

# Allows you to generate reports for Actions Summary
# https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/
use-actions-summary: 'true'

# Customize the title of badges shown for each Actions Summary.
# Useful when distinguish summaries for tests ran in multiple Actions steps.
badge-title: 'tests'

# Limits which test suites are listed:
# all
# failed
# none
list-suites: 'all'

# Limits which test cases are listed:
Expand Down
25 changes: 14 additions & 11 deletions __tests__/__outputs__/dart-json.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
![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>
|Report|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|fixtures/dart-json.json|1:white_check_mark:|4:x:|1:warning:|4s|
## :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:warning:|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
:warning: Skipped test
```
31 changes: 17 additions & 14 deletions __tests__/__outputs__/dotnet-trx.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
![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>
|Report|Passed|Failed|Skipped|Time|
|:---|---:|---:|---:|---:|
|DotnetTests.XUnitTests|5:white_check_mark:|5:x:|1:warning:|1s|
## :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:warning:|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
:warning: Skipped_Test
:white_check_mark: Timeout_Test
```
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载