MSTest (TRX)
Buildnote CLI can collect MSTest TRX format test results and submit them to the buildnote service. TRX is used by Microsoft frameworks and testing platforms.
Configuration
To enable collection of TRX test results add the following section to buildnote.json
config file
json
{
"collect": {
...
"trx": {
"enabled": true,
"include": [
"**/*.trx"
]
}
...
}
}
Metadata
You can attach metadata to TRX test results by configuring the metadata
section:
json
{
"collect": {
...
"trx": {
"enabled": true,
"include": [
"**/*.trx"
],
"metadata": {
"test-user": "{{ env.USER }}",
"build-environment": "{{ env.BUILD_ENV }}"
}
}
...
}
}
Excluding paths
To exclude any paths from collection configure exclude
section with required globs.
json
{
"collect": {
...
"trx": {
"exclude": [
"/any/excluded/glob/**/"
]
}
...
}
}