MSTest (TRX)
The Buildnote CLI collects MSTest TRX format test results and sends them to Buildnote. TRX is used by Microsoft frameworks and testing platforms.
Configuration
To collect TRX test results, add this section to your buildnote.json config file:
json
{
"collect": {
...
"trx": {
"enabled": true,
"include": [
"**/*.trx"
]
}
...
}
}Metadata
To attach your own metadata to TRX test results, add a metadata section:
json
{
"collect": {
...
"trx": {
"enabled": true,
"include": [
"**/*.trx"
],
"metadata": {
"test-user": "{{ env.USER }}",
"build-environment": "{{ env.BUILD_ENV }}"
}
}
...
}
}Excluding paths
To leave some paths out of collection, list their globs under exclude:
json
{
"collect": {
...
"trx": {
"exclude": [
"/any/excluded/glob/**/"
]
}
...
}
}