test-reporter/action.yml
2021-02-15 15:54:15 +01:00

77 lines
2.2 KiB
YAML

name: Test Reporter
description: |
Displays test results directly in GitHub. Supports .NET (xUnit, NUnit, MSTest), Dart, Flutter and JavaScript (JEST).
author: Michal Dorner <dorner.michal@gmail.com>
inputs:
artifact:
description: Name or regex of artifact containing test results
required: false
name:
description: Name of the check run
required: true
path:
description: |
Coma separated list of paths to test reports
Supports wildcards via [fast-glob](https://github.com/mrmlnc/fast-glob)
All matched result files must be of same format
required: true
reporter:
description: |
Format of test report. Supported options:
- dart-json
- dotnet-trx
- flutter-json
- jest-junit
required: true
list-suites:
description: |
Limits which test suites are listed. Supported options:
- all
- only-failed
required: true
default: 'all'
list-tests:
description: |
Limits which test cases are listed. Supported options:
- all
- only-failed
- none
required: true
default: 'all'
max-annotations:
description: |
Limits number of created annotations with error message and stack trace captured during test execution.
Must be less or equal to 50.
required: true
default: '10'
fail-on-error:
description: Set this action as failed if test report contain any failed test
required: true
default: 'true'
working-directory:
description: Relative path under $GITHUB_WORKSPACE where the repository was checked out
required: false
token:
description: GitHub Access Token
required: false
default: ${{ github.token }}
outputs:
conclusion:
description: |
Final conclusion of the created check run:
- 'success' if no failed tests was found
- 'failure' if any failed test was found
passed:
description: Count of passed tests
failed:
description: Count of failed tests
skipped:
description: Count of skipped tests
time:
description: Test execution time [ms]
runs:
using: 'node12'
main: 'dist/index.js'
branding:
color: blue
icon: file-text