Test results file generated when you execute tests using MSTest. It is an XML file containing information about the test and the test run.
Questions tagged [trx]
64 questions
10
votes
2 answers
Convert Trx into Html using TRXER
Just released a new tool called TRXER.
Git link :https://github.com/NivNavick/trxer
All it does is tramsform TRX file (mstest results file) into html.
The Html as shown below is clean,nice and understandable.
You can see the pie indicates statuses…

Niv Navick
- 192
- 1
- 4
- 13
10
votes
1 answer
How to programmatically generate a trx file?
I have searched on this topic, didn't find any good info to do it step by step, so I studied it and shared it here. Here is an easy solution.

kongkongt
- 301
- 3
- 9
7
votes
2 answers
How to display generated trx files in Jenkins WEB GUI?
I have a bunch of test result files (*.trx) after build is complete in directory TestResults.
Is it possible to display those test results in Jenkins? How?
I tried MSTest Jenkins plugin but it allows only one trx file per job :(
*.trx files are…

sero
- 161
- 2
- 11
6
votes
1 answer
dotnet test: how to include assembly name into the .trx result files?
I'm running a test solution with a build on a TFS server. I'm generating .trx files using the command
dotnet test --logger:trx;
on the whole solution, which includes multiple test projects. However, the default .trx files names don't contain an…

Morgoth
- 237
- 2
- 11
5
votes
1 answer
Serialization of TestRunType throwing an exception
I'm trying to analyse some trx files (webTestResults) to output synthetic excel files.
first, I take the trx xsd schema (vstst.xsd in visual studio directory) to generate a bunch of C# Classes.
then, I try to instantiate an XmlSerializer based on…

LB40
- 12,041
- 17
- 72
- 107
5
votes
0 answers
How to include test category in visual studio test results
How do I make sure the test categories I used in my unit tests are included in the test results. So that I could use the category to filter my tests or generate a html using trx2html grouped by the category.
[Trait("Category", "1")]
public class…

Sunil Buddala
- 1,123
- 1
- 10
- 22
4
votes
3 answers
Running MSTEST.exe /publish on a TeamBuild server, what are the prerequisites?
Similarly to How to use MsTest in Continuous Integration without VS?, I want to run mstest.exe on a TeamBuild server.
My context is Trapping Error Status in MSBuild - i.e., I'm only trying to use mstest.exe /publish to upload the results in to the…

Ruben Bartelink
- 59,778
- 26
- 187
- 249
3
votes
0 answers
How to generate a user-friendly test overview from a GitHub Action, without using unverified Marketplace Actions?
I have a GitHub Action that runs a C# xUnit test suite. From this test output I want to generate a user-friendly test report like the ones you can get on Jenkins or TeamCity.
There is an Action in the GitHub Actions Marketplace called Publish Unit…

Claus Appel
- 1,015
- 10
- 28
3
votes
1 answer
Publish Test Results tasks in Azure DevOps using NUnit
I'm trying to add a 'Publish Test Results' task into my Azure DevOps release pipeline, however, it looks like when I try to publish the .trx file, it's not looking in the correct folder and tries to parse an invalid file format (I'm assuming this is…

benm912
- 77
- 1
- 7
3
votes
1 answer
Generate trx file through code
I want to manually generate TRX file through for my code.
Is there any program which will be used for this purpose.
If not then how to do it?

meetjaydeep
- 1,752
- 4
- 25
- 39
3
votes
0 answers
How to use step by step trx framework for iso 8583?
Hello I am first in iso 8583 project, i use .net for create the project and i use trx framework? can you help me to use trx framework ? :D

masadi zainul
- 397
- 4
- 14
2
votes
0 answers
how can create USDT wallet address in nodejs and web3.js in ERC20
I have 2 networks. TRC-20 and ERC-20 networks.
Now I want to use different coins on my site. For example, USDT, Doge, Bitcoin, and any currency in the ERC-20 and TRc-20 networks.
When a user wants to transfer money from my site to a Binance site or…

Mr Coder
- 761
- 2
- 13
- 34
2
votes
0 answers
Count each subtest for "Failed %" in MSTest's trx file
We are running an automated test where each file counts as its own test. We are using the Dynamic Data attribute to provide files that need to be tested. Currently, each file gets tested, however in the TRX file, it is logging them, essentially, as…

Jacob Alley
- 767
- 8
- 34
2
votes
1 answer
Generate both code coverage report and Unit test results using a single command (if possible)
I have a Windows service written in .net framework 4.6. I'm trying to run Sonar analysis for this service. My requirement is to generate both code coverage result and Unit test case report either by using MStest.exe or vstest.console.exe. I have…

CrazyCoder
- 2,194
- 10
- 44
- 91
2
votes
1 answer
Sonarqube showing code coverage as 0%, but shows the no of tests passed
I have started using Sonarqube and I have setup a local sonar server to test how it works.
Earlier I used /d:sonar.cs.vscoveragexml.reportsPaths and generated .coveragexml file. Now I'm trying to generate .trx files using MSTest commands.
So these…

CrazyCoder
- 2,194
- 10
- 44
- 91