-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Document AzureDevOps plugin #49949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+44
−11
Merged
Document AzureDevOps plugin #49949
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a2bad1e
Document AzureDevOps plugin
nohwnd ad0f940
Fix linter
nohwnd 35e1730
Remove license notice
nohwnd 649af30
Add to table and re-format
nohwnd a26e83f
Update unit-testing-mstest-sdk.md
nohwnd e9ab9f0
Update docs/core/testing/microsoft-testing-platform-extensions-test-r…
nohwnd 75d5fd7
Apply suggestion from @nohwnd
nohwnd d60295a
Apply suggestions from code review
nohwnd c5d7ec2
Update docs/core/testing/microsoft-testing-platform-extensions-test-r…
BillWagner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,3 +27,35 @@ | |
| | `--report-trx-filename` | The name of the generated TRX report. The default name matches the following format `<UserName>_<MachineName>_<yyyy-MM-dd HH:mm:ss>.trx`. | | ||
|
|
||
| The report is saved inside the default _TestResults_ folder that can be specified through the `--results-directory` command line argument. | ||
|
|
||
| ## Azure DevOps reports | ||
|
|
||
| Azure DevOps report plugin enhances test running for developers that host their code on GitHub, but build on Azure DevOps build agents. It adds additional information to failures to show failure directly in GitHub PR. | ||
|
|
||
|  | ||
|
Check failure on line 35 in docs/core/testing/microsoft-testing-platform-extensions-test-reports.md
|
||
|
|
||
| The extension is shipped in [Microsoft.Testing.Extensions.AzureDevOpsReport](https://nuget.org/packages/Microsoft.Testing.Extensions.AzureDevOpsReport) package. | ||
|
|
||
| > [!IMPORTANT] | ||
| > The package is shipped with Microsoft .NET library closed-source free to use licensing model. | ||
| The available options as follows: | ||
|
|
||
| | Option | Description | | ||
| |--|--| | ||
| | `--report-azdo` | Enable outputting errors / warnings in CI builds. | | ||
| | `--report-azdo-severity` | Severity to use for the reported event. Options are: `error` (default) and `warning`. | | ||
|
|
||
| The extension automatically detects that it is running in continuous integration (CI) environment by checking the `TF_BIULD` environment variable. | ||
nohwnd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Determining the line to report | ||
|
|
||
| To highlight the correct line in code where failure occured, AzureDevOps report plugin searches the error stacktrace for a file that exists in the current repository. | ||
nohwnd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| To determine this it: | ||
nohwnd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - finds the repository root, this is done by searching the `.git` directory closest to the location from where the test application is started (as determined by `AppContext.BaseDirectory`) | ||
nohwnd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - finds the first line in stack trace that has file location and line (the library needs to have debug symbols) | ||
| - excludes all files that end with `Assert.cs` to avoid showing details of your assertion implementations or wrappers | ||
| - excludes all files that don't exist on disk (typically those are lines from external libraries that ship debug symbols e.g. MSTest) | ||
nohwnd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
BillWagner marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.