-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MergeWith in dotnet test
is not working con vstest integration(collectors)
#662
Comments
Thank's @StefanOssendorf for reporting this, there is a bug |
dotnet test
is not workingdotnet test
is not working con vstest integration(collectors)
For the moment you could merge report directly to report viewer if supported. |
After some investigation I found the problem, I'll try to explain: at the moment merge functionality is based on fact that full path of output report file is know and can be specified as we can see from msbuild sample https://github.com/tonerdo/coverlet/blob/master/Documentation/Examples/MSBuild/MergeWith/HowTo.md with When we use collectors the story is different, we're integrated inside vstest plat and we don't have full control on the path of generated report file as we can see on repo We can only specify More info #500 (comment) cc: @vagisha-nidhi |
sorry @StefanOssendorf for the inconvenience vstest integration is pretty new so we don't have all use-cases at the moment. |
@MarcoRossignoli No problem. Thank you for your very detailed explanation and investigation to this issue. Just for some context: We are using coverlet in our Azure Pipeline to get the code coverage of our 40+ test projects. The inconvinient thing is, the upload of those 40+ result files take ~8minutes. But after a bit thinking I think the problem is more that we selfhost the build agents than using the hosted ones from ms. |
Since this issue is a "by vstest design not fixable" I'll close it now. |
Yes take a look at our samples! We'll keep this issue open for future reference. |
@StefanOssendorf out contributor @pape77 found a clever way to use merge with vstest, run tests sequentially and override merge one take a look maybe could help #225 (comment) |
This issue is stale because it has been open for 3 months with no activity. |
Tip Some alternative solutions to merge coverage files
|
When I try to use the runsettings file to merge the results of our ~40 Test projects the merge file is not created.
Here is a mwe with two test projects and a runsettings-file. The mwe is derived from the HelloWorld-Documentation project.
I have tried several path-combinations (only merged-file, relative path, absolute path) in the runsettings but neither has worked.
The text was updated successfully, but these errors were encountered: