mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Fix grammar issues in README
This commit is contained in:
parent
78b798ea79
commit
368fd2475a
1 changed files with 21 additions and 21 deletions
42
README.md
42
README.md
|
|
@ -54,9 +54,9 @@ jobs:
|
||||||
## Recommended setup for public repositories
|
## Recommended setup for public repositories
|
||||||
|
|
||||||
Workflows triggered by pull requests from forked repositories are executed with read-only token and therefore can't create check runs.
|
Workflows triggered by pull requests from forked repositories are executed with read-only token and therefore can't create check runs.
|
||||||
To workaround this security restriction it's required to use two separate workflows:
|
To workaround this security restriction, it's required to use two separate workflows:
|
||||||
1. `CI` runs in the context of PR head branch with read-only token. It executes the tests and uploads test results as build artifact
|
1. `CI` runs in the context of the PR head branch with the read-only token. It executes the tests and uploads test results as a build artifact
|
||||||
2. `Test Report` runs in the context of repository main branch with read/write token. It will download test results and create reports
|
2. `Test Report` runs in the context of the repository main branch with read/write token. It will download test results and create reports
|
||||||
|
|
||||||
**PR head branch:** *.github/workflows/ci.yml*
|
**PR head branch:** *.github/workflows/ci.yml*
|
||||||
```yaml
|
```yaml
|
||||||
|
|
@ -116,7 +116,7 @@ jobs:
|
||||||
|
|
||||||
# Coma separated list of paths to test results
|
# Coma separated list of paths to test results
|
||||||
# Supports wildcards via [fast-glob](https://github.com/mrmlnc/fast-glob)
|
# Supports wildcards via [fast-glob](https://github.com/mrmlnc/fast-glob)
|
||||||
# All matched result files must be of same format
|
# All matched result files must be of the same format
|
||||||
path: ''
|
path: ''
|
||||||
|
|
||||||
# Format of test results. Supported options:
|
# Format of test results. Supported options:
|
||||||
|
|
@ -143,7 +143,7 @@ jobs:
|
||||||
# Must be less or equal to 50.
|
# Must be less or equal to 50.
|
||||||
max-annotations: '10'
|
max-annotations: '10'
|
||||||
|
|
||||||
# Set action as failed if test report contain any failed test
|
# Set action as failed if test report contains any failed test
|
||||||
fail-on-error: 'true'
|
fail-on-error: 'true'
|
||||||
|
|
||||||
# Relative path under $GITHUB_WORKSPACE where the repository was checked out.
|
# Relative path under $GITHUB_WORKSPACE where the repository was checked out.
|
||||||
|
|
@ -225,8 +225,8 @@ Or with (undocumented) CLI argument:
|
||||||
|
|
||||||
|
|
||||||
According to documentation `dart_test.yaml` should be at the root of the package, next to the package's pubspec.
|
According to documentation `dart_test.yaml` should be at the root of the package, next to the package's pubspec.
|
||||||
On current `stable` and `beta` channels it doesn't work and you have to put `dart_test.yaml` inside your `test` folder.
|
On current `stable` and `beta` channels it doesn't work, and you have to put `dart_test.yaml` inside your `test` folder.
|
||||||
On `dev` channel it's already fixed.
|
On `dev` channel, it's already fixed.
|
||||||
|
|
||||||
For more information see:
|
For more information see:
|
||||||
- [test package](https://pub.dev/packages/test)
|
- [test package](https://pub.dev/packages/test)
|
||||||
|
|
@ -240,17 +240,17 @@ For more information see:
|
||||||
<summary>java-junit (Experimental)</summary>
|
<summary>java-junit (Experimental)</summary>
|
||||||
|
|
||||||
Support for [JUnit](https://Junit.org/) XML is experimental - should work but it was not extensively tested.
|
Support for [JUnit](https://Junit.org/) XML is experimental - should work but it was not extensively tested.
|
||||||
To have code annotations working properly it's required your directory structure matches package name.
|
To have code annotations working properly, it's required your directory structure matches the package name.
|
||||||
This is due to the fact Java stacktraces doesn't contains full path to the source file.
|
This is due to the fact Java stack traces don't contain a full path to the source file.
|
||||||
Some heuristic was necessary to figure out mapping between line in stack trace and actual source file.
|
Some heuristic was necessary to figure out the mapping between the line in the stack trace and an actual source file.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>jest-Junit</summary>
|
<summary>jest-Junit</summary>
|
||||||
|
|
||||||
[JEST](https://jestjs.io/) testing framework support requires usage of [jest-Junit](https://github.com/jest-community/jest-Junit) reporter.
|
[JEST](https://jestjs.io/) testing framework support requires the usage of [jest-Junit](https://github.com/jest-community/jest-Junit) reporter.
|
||||||
It will create test results in Junit XML format which can be then processed by this action.
|
It will create test results in Junit XML format which can be then processed by this action.
|
||||||
You can use following example configuration in `package.json`:
|
You can use the following example configuration in `package.json`:
|
||||||
```json
|
```json
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest --ci --reporters=default --reporters=jest-Junit"
|
"test": "jest --ci --reporters=default --reporters=jest-Junit"
|
||||||
|
|
@ -280,31 +280,31 @@ Configuration of `uniqueOutputName`, `suiteNameTemplate`, `classNameTemplate`, `
|
||||||
- Mocha version [v7.2.0](https://github.com/mochajs/mocha/releases/tag/v7.2.0) or higher
|
- Mocha version [v7.2.0](https://github.com/mochajs/mocha/releases/tag/v7.2.0) or higher
|
||||||
- Usage of [json](https://mochajs.org/#json) reporter.
|
- Usage of [json](https://mochajs.org/#json) reporter.
|
||||||
|
|
||||||
You can use following example configuration in `package.json`:
|
You can use the following example configuration in `package.json`:
|
||||||
```json
|
```json
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --reporter json > test-results.json"
|
"test": "mocha --reporter json > test-results.json"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Test processing might fail if any of your tests writes anything on standard output.
|
Test processing might fail if any of your tests write anything on standard output.
|
||||||
Mocha unfortunately doesn't have option to store `json` output directly to file and we have to rely on redirecting its standard output.
|
Mocha, unfortunately, doesn't have the option to store `json` output directly to the file, and we have to rely on redirecting its standard output.
|
||||||
There is a work in progress to fix it: [mocha#4607](https://github.com/mochajs/mocha/pull/4607)
|
There is a work in progress to fix it: [mocha#4607](https://github.com/mochajs/mocha/pull/4607)
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## GitHub limitations
|
## GitHub limitations
|
||||||
|
|
||||||
Unfortunately there are some known issues and limitations caused by GitHub API:
|
Unfortunately, there are some known issues and limitations caused by GitHub API:
|
||||||
|
|
||||||
- Test report (i.e. Check Run summary) is markdown text. No custom styling or HTML is possible.
|
- Test report (i.e. Check Run summary) is markdown text. No custom styling or HTML is possible.
|
||||||
- Maximum report size is 65535 bytes. Input parameters `list-suites` and `list-tests` will be automatically adjusted if max size is exceeded.
|
- Maximum report size is 65535 bytes. Input parameters `list-suites` and `list-tests` will be automatically adjusted if max size is exceeded.
|
||||||
- Test report can't reference any additional files (e.g. screenshots). You can use `actions/upload-artifact@v2` to upload them and inspect manually.
|
- Test report can't reference any additional files (e.g. screenshots). You can use `actions/upload-artifact@v2` to upload them and inspect them manually.
|
||||||
- Check Runs are created for specific commit SHA. it's not possible to specify under which workflow test report should belong if there are more
|
- Check Runs are created for specific commit SHA. It's not possible to specify under which workflow test report should belong if more
|
||||||
workflows running for same SHA. Thanks to this GitHub "feature" it's possible your test report will appear in unexpected place in GitHub UI.
|
workflows are running for the same SHA. Thanks to this GitHub "feature" it's possible your test report will appear in an unexpected place in GitHub UI.
|
||||||
For more information see [#67](https://github.com/dorny/test-reporter/issues/67).
|
For more information, see [#67](https://github.com/dorny/test-reporter/issues/67).
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
- [paths-filter](https://github.com/dorny/paths-filter) - Conditionally run actions based on files modified by PR, feature branch or pushed commits
|
- [paths-filter](https://github.com/dorny/paths-filter) - Conditionally run actions based on files modified by PR, feature branch, or pushed commits
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue