You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to merge multiple trx files from multiple test runs into a single run, by replacing the tests that fail on a first run with the successful test result in a second run. I have been using another project for this, https://github.com/ricardofslp/dotnet-trx-merge. However on some projects when I run the tests I get multiple tests which have the same id. The project uses testId to manage the replacement during the merge, and this causes my trx merges to fail. I am trying to fix this issue and was trying to create an MVP to reproduce the issue so I would have example trx files to use for the tests I wanted to write.
In my 'real' project I am using DataTestMethod on my tests and attributes which implement ITestDataSource and provide the test data. Each attribute returns a unique name. When I run the tests I get the same test id for all the tests that execute because of that method.
In my MVP I cannot get the same id unless I return the same name from the ITestDataSource.
What determines if a test can get the same id? Is this valid, or is there something wrong in my 'real' project? How can I find out what that is? if it is valid, how can I reproduce it consistently?
Thanks!
The text was updated successfully, but these errors were encountered:
I am not sure exactly about the TRX, I will double check tomorrow. For the ID used within MSTest (assuming it's being reused), it depends on the version of MSTest you are using (and if on v3 the strategy you are using #1286).
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 10 days of this comment.
Hi.
I am trying to merge multiple trx files from multiple test runs into a single run, by replacing the tests that fail on a first run with the successful test result in a second run. I have been using another project for this, https://github.com/ricardofslp/dotnet-trx-merge. However on some projects when I run the tests I get multiple tests which have the same id. The project uses testId to manage the replacement during the merge, and this causes my trx merges to fail. I am trying to fix this issue and was trying to create an MVP to reproduce the issue so I would have example trx files to use for the tests I wanted to write.
In my 'real' project I am using
DataTestMethod
on my tests and attributes which implementITestDataSource
and provide the test data. Each attribute returns a unique name. When I run the tests I get the same test id for all the tests that execute because of that method.In my MVP I cannot get the same id unless I return the same name from the
ITestDataSource
.What determines if a test can get the same id? Is this valid, or is there something wrong in my 'real' project? How can I find out what that is? if it is valid, how can I reproduce it consistently?
Thanks!
The text was updated successfully, but these errors were encountered: