Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Pine <[email protected]>
  • Loading branch information
Evangelink and IEvangelist authored Jan 5, 2024
1 parent 174a45e commit bd18ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/core/testing/unit-testing-mstest-runner-exit-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ The MSTest runner uses known exit codes to communicate test failure or app error

To enable verbose logging and troubleshoot issues, see [MSTest runner extensions: Troubleshoot](unit-testing-mstest-runner-extensions.md#troubleshoot).

## Ignoring specific exit codes
## Ignore specific exit codes

MSTest runner is designed to be strict by default but allows for configurability. As such, it is possible for users to decide that some exit codes should be ignored (an exit code of `0` will be returned instead of the original exit code).
MSTest runner is designed to be strict by default but allows for configurability. As such, it's possible for users to decide which exit codes should be ignored (an exit code of `0` will be returned instead of the original exit code).

You can use the `--ignore-exit-code` command line option or the `TESTINGPLATFORM_EXITCODE_IGNORE` environment variable, that accept a semi-colon separated list of exit codes to ignore (e.g. `--ignore-exit-code 2;3;8`). A common scenario is to consider that test failures should not result in a non-zero exit code (which corresponds to ignoring exit-code `2`).
To ignore specific exit codes, use the `--ignore-exit-code` command line option or the `TESTINGPLATFORM_EXITCODE_IGNORE` environment variable. The valid format accepted is a semi-colon separated list of exit codes to ignore (for example, `--ignore-exit-code 2;3;8`). A common scenario is to consider that test failures shouldn't result in a non-zero exit code (which corresponds to ignoring exit-code `2`).
2 changes: 1 addition & 1 deletion docs/core/testing/unit-testing-mstest-runner-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Prints out a description of how to use the command.

- **`-ignore-exit-code`**

Allows to consider some non-zero exit codes as `0`. For more information, refer to [Ignoring specific exit codes](./unit-testing-mstest-runner-exit-codes.md#ignoring-specific-exit-codes).
Allows some non-zero exit codes to be ignored, and instead returned as `0`. For more information, see [Ignore specific exit codes](./unit-testing-mstest-runner-exit-codes.md#ignore-specific-exit-codes).

- **`--info`**

Expand Down

0 comments on commit bd18ada

Please sign in to comment.