microsoft/vstest-action
Run VSTest and upload result logs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| testAssembly | Run tests from the specified files | yes | **\\*test*.dll\n!**\\*TestAdapter.dll\n!**\\obj\\** |
| searchFolder | Folder to search for the test assemblies | yes | — |
| testFiltercriteria | Additional criteria to filter tests from Test assemblies | no | — |
| vstestLocationMethod | Specify which test platform should be used. Valid values are: `version` and `location`) | no | — |
| vsTestVersion | The version of Visual Studio test to use. If latest is specified it chooses Visual Studio 2017 or Visual Studio 2015 depending on what is installed. Visual Studio 2013 is not supported. Valid values are: `latest`, `14.0`, `15.0`, and `16.0` | no | — |
| vstestLocation | Specify the path to VSTest | no | — |
| runSettingsFile | Path to runsettings or testsettings file to use with the tests | no | — |
| pathToCustomTestAdapters | Directory path to custom test adapters. Adapters residing in the same folder as the test assemblies are automatically discovered | no | — |
| runInParallel | If set, tests will run in parallel leveraging available cores of the machine. This will override the MaxCpuCount if specified in your runsettings file. Valid values are: `true` and `false` | no | — |
| runTestsInIsolation | Runs the tests in an isolated process. This makes vstest.console.exe process less likely to be stopped on an error in the tests, but tests might run slower. Valid values are: `true` and `false` | no | — |
| codeCoverageEnabled | Collect code coverage information from the test run | no | — |
| otherConsoleOptions | Other console options that can be passed to vstest.console.exe | no | — |
| platform | Build platform against which the tests should be reported. Valid values are: `x86`, `x64`, and `ARM` | no | — |
| resultLogsArtifactName | Test result logs artifact name | yes | vs-test-result-logs |
| ifNoFilesFound | The desired behavior if no files are found using the provided path. Available Options: warn: Output a warning but do not fail the action error: Fail the action with an error message ignore: Do not output any warnings or errors, the action does not fail | — | warn |
| retentionDays | Duration after which artifact will expire in days. 0 means using default retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. | — | — |
Outputs
no outputs