-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Recursively Get Suites and Tests * Processing Tests not in a Suite * Include Suite Name, failed, skipped, and time * Following Linting Rules * Fix error type issue * Set fail-on-error to false * Add sample tests
- Loading branch information
1 parent
a3560da
commit a1708a9
Showing
14 changed files
with
1,045 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Dirty Laundry Test' | ||
on: | ||
pull_request: | ||
paths-ignore: [ '**.md' ] | ||
push: | ||
paths-ignore: [ '**.md' ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-test: | ||
name: Build & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run format-check | ||
- run: npm run lint | ||
|
||
- name: Create mochawesome report | ||
uses: ./ | ||
if: success() || failure() | ||
with: | ||
name: Mochawesome Tests | ||
path: __tests__/fixtures/mochawesome1-json.json | ||
reporter: mochawesome-json | ||
fail-on-error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
![Tests passed successfully](https://img.shields.io/badge/tests-1%20passed-success) | ||
## ✔️ <a id="user-content-r0" href="#r0">fixtures/mochawesome-json.json</a> | ||
**1** tests were completed in **14ms** with **1** passed, **0** failed and **0** skipped. | ||
![Tests failed](https://img.shields.io/badge/tests-1%20passed%2C%204%20failed-critical) | ||
## ❌ <a id="user-content-r0" href="#r0">fixtures/mochawesome-json.json</a> | ||
**5** tests were completed in **14ms** with **1** passed, **4** failed and **0** skipped. | ||
|Test suite|Passed|Failed|Skipped|Time| | ||
|:---|---:|---:|---:|---:| | ||
|[](#r0s0)|1✔️|||0ms| | ||
### ✔️ <a id="user-content-r0s0" href="#r0s0"></a> | ||
|[nofile](#r0s0)||1❌||3ms| | ||
|[test/main.test.js](#r0s1)|1✔️|3❌||2ms| | ||
### ❌ <a id="user-content-r0s0" href="#r0s0">nofile</a> | ||
``` | ||
❌ Timeout test | ||
Error: Timeout of 1ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/work/Source/Repos/thirdparty/phoenix-test-reporter/reports/mochawesome/test/second.test.js) | ||
``` | ||
### ❌ <a id="user-content-r0s1" href="#r0s1">test/main.test.js</a> | ||
``` | ||
Test 1 | ||
✔️ Passing test | ||
Test 1 Test 1.1 | ||
❌ Exception in target unit | ||
Error: Some error | ||
❌ Failing test | ||
AssertionError: Expected values to be strictly equal: | ||
false !== true | ||
Test 2 | ||
❌ Exception in test | ||
Error: Some error | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,4 +155,4 @@ | |
"err": {} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.