Skip to content

Commit

Permalink
Merge branch 'main' into mocha-empty-test-suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Dorner committed Nov 13, 2022
2 parents a3356fa + 2f63fb8 commit 48bf7af
Show file tree
Hide file tree
Showing 21 changed files with 3,353 additions and 3,305 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# `dist/index.js` is a special file in Actions.
# When you reference an action with `uses:` in a workflow,
# `index.js` is the code that will run.
# For our project, we generate this file through a build process from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist/

on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
check-dist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set Node.js 16.x
uses: actions/setup-node@v3.5.1
with:
node-version: 16.x

- name: Install dependencies
run: npm ci

- name: Rebuild the dist/ directory
run: |
npm run build
npm run package
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.6.0
- [Update to node16 + recent versions of core and exec packages](https://github.com/dorny/test-reporter/pull/203)
- [Update all dependencies to latest versions](https://github.com/dorny/test-reporter/pull/186)
- [Fix tests on non us-EN local env](https://github.com/dorny/test-reporter/pull/185)

## v1.5.0
- [Add option to convert backslashes in path pattern to forward slashes](https://github.com/dorny/test-reporter/pull/128)
- [Add option to generate only the summary from processed test results files](https://github.com/dorny/test-reporter/pull/123)
Expand Down
8 changes: 4 additions & 4 deletions __tests__/__outputs__/dart-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
**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|
|[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 1
✔️ Passing test
Passing test
Test 1 Test 1.1
❌ Failing test
Expected: <2>
Expand All @@ -24,5 +24,5 @@ Test 2
```
❌ Timeout test
TimeoutException after 0:00:00.000001: Test timed out after 0 seconds.
✖️ Skipped test
Skipped test
```
14 changes: 7 additions & 7 deletions __tests__/__outputs__/dotnet-trx.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
**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|
|[DotnetTests.XUnitTests.CalculatorTests](#r0s0)|5|5❌|1|118ms|
### ❌ <a id="user-content-r0s0" href="#r0s0">DotnetTests.XUnitTests.CalculatorTests</a>
```
✔️ Custom Name
Custom Name
❌ Exception_In_TargetTest
System.DivideByZeroException : Attempted to divide by zero.
❌ Exception_In_Test
Expand All @@ -15,17 +15,17 @@
Assert.Equal() Failure
Expected: 3
Actual: 2
✔️ Is_Even_Number(i: 2)
Is_Even_Number(i: 2)
❌ Is_Even_Number(i: 3)
Assert.True() Failure
Expected: True
Actual: False
✔️ Passing_Test
✔️ Should be even number(i: 2)
Passing_Test
Should be even number(i: 2)
❌ Should be even number(i: 3)
Assert.True() Failure
Expected: True
Actual: False
✖️ Skipped_Test
✔️ Timeout_Test
Skipped_Test
Timeout_Test
```
2,104 changes: 1,052 additions & 1,052 deletions __tests__/__outputs__/fluent-validation-test-results.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions __tests__/__outputs__/jest-junit.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
**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|
|[__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>
```
Test 1
✔️ Passing test
Passing test
Test 1 › Test 1.1
❌ Failing test
Error: expect(received).toBeTruthy()
Expand All @@ -22,5 +22,5 @@ Test 2
```
❌ 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
Skipped test
```
Loading

0 comments on commit 48bf7af

Please sign in to comment.