How to publish test results for multarget solution (.NET)

I have a .NET solution with unit tests. The test projects are target .NetFramework 4.6.2 and NetCoreApp3.1. I want to run tests for both frameworks and be sure that my components are work well under each of them. As a result I have two sets of xml/trx files with test results which contains tests with the same names. Sometimes TeamCity treats the similar tests as one test which was launched twice, somtimes TeamCity treats similar tests as a different ones. On our real project it leads to the fact that similar builds may contains from 7K to 12K tests.

I want to tests be separated. Moreover, I want to know the framework name on which the test failed.

I tried to use 'Xml report processing' build feature in conjunction with trx logger. I tried to use TeamCity.VSTest.TestAdapter. 

Test project: Upload id: 2021_11_23_QR2RTkQTcsKxpPgn (file: Tests.zip)

TeamCity screenshot: Upload id: 2021_11_23_MJisfhuqymB3QLFi (file: test.png)

 

 

 

 

 

0

Please sign in to leave a comment.