mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-28 21:59:06 +08:00
* Added basic framework for enable code coverage * Added basic coverage results building and combination * fixed ENABLE_CODE_COVERAGE to be `true` or `false` * Added code coverage project to manifest * Updated to add more tests for code coverage build * Updated coverage parameter documentation * Fixed small syntax error * Enabled code coverage flag for code coverage tests * Fixed error in test file build * Updated project run settings * Fixed error when creating combined code coverage results * Updated testing workflows * updated test workflows * Updated parameters and added tests * Updated tests and bash script for running * Updated run_tests.sh script to simplfy some parameters * Updated run_tests to remove incorrect ';' * Updated run_tests script * Fixed small syntax error * Fixed for loop in run_tests.sh * Updated run_tests syntax error for '=' operator * Fixed runTests variable assignment * Fixed parameters for running tests via bash * Corrected bash arguments * Updated test cases in main.yml * Updated parameter names and default values for code coverage * Fixed broken paths for coverage results upload in main.yml * Corrected names of coverage results artifacts
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
name: 'Unity - Test runner'
|
|
author: Webber Takken <webber@takken.io>
|
|
description: 'Run tests for any Unity project.'
|
|
inputs:
|
|
unityVersion:
|
|
required: false
|
|
default: 'auto'
|
|
description: 'Version of unity to use for testing the project. Use "auto" to get from your ProjectSettings/ProjectVersion.txt'
|
|
customImage:
|
|
required: false
|
|
default: ''
|
|
description: 'Specific docker image that should be used for testing the project'
|
|
projectPath:
|
|
required: false
|
|
description: 'Path to the Unity project to be tested.'
|
|
customParameters:
|
|
required: false
|
|
description: 'Extra parameters to configure the Unity editor run.'
|
|
testMode:
|
|
required: false
|
|
default: 'all'
|
|
description: 'The type of tests to be run by the test runner.'
|
|
coverageOptions:
|
|
required: false
|
|
default: 'enableCyclomaticComplexity;generateHtmlReport;generateBadgeReport'
|
|
description: 'Optional coverage parameters for the -coverageOptions argument.'
|
|
artifactsPath:
|
|
required: false
|
|
default: 'artifacts'
|
|
description: 'Path where test artifacts should be stored.'
|
|
useHostNetwork:
|
|
required: false
|
|
default: false
|
|
description: 'Initialises Docker using the host network.'
|
|
sshAgent:
|
|
required: false
|
|
default: ''
|
|
description: 'SSH Agent path to forward to the container.'
|
|
gitPrivateToken:
|
|
required: false
|
|
default: ''
|
|
description: 'GitHub Private Access Token (PAT) to pull from GitHub.'
|
|
githubToken:
|
|
required: false
|
|
default: ''
|
|
description: 'Token to authorize access to the GitHub REST API. If provided, a check run will be created with the test results.'
|
|
checkName:
|
|
required: false
|
|
default: 'Test Results'
|
|
description: 'Name for the check run that is created when a github token is provided.'
|
|
outputs:
|
|
artifactsPath:
|
|
description: 'Path where the artifacts are stored.'
|
|
coveragePath:
|
|
description: 'Path where the code coverage results are stored.'
|
|
branding:
|
|
icon: 'box'
|
|
color: 'gray-dark'
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|