Closed 64J0 closed 11 months ago
The Merge-OpenCover
cmdlet can do this for you in a general case.
If the tests are being run on the exact same set of binaries, it is possible to do
They run in parallel in different virtual machines, but indeed, they are related to the same binaries. Thanks for the fast reply @SteveGilham.
Possibly related: https://stackoverflow.com/questions/23089627/opencover-possible-to-merge-multiple-reports-into-one.
I'm going to start implementing/testing this tomorrow.
I'm reopening this issue since I noticed that this tool documentation is for PowerShell. Does it work in Linux shell as well (like bash, for example)?
Apparently PowerShell works on Linux -> https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.3
To present an overview of what I'm trying:
pwsh
) PowerShell on Linuxdotnet tool install --global altcover.global --version 8.6.68
)altcover ImportModule
But, whenever I try to use the Merge-OpenCover
command it throws this error:
Merge-OpenCover: The term 'Merge-OpenCover' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Actually, I understood how to use it now, after checking this file:
Description:
Hello, hope you're good.
I have some tests that run in parallel, and each is responsible for testing a module of the system. I'd like to combine all their coverage files (
.xml
) into a final single file.Is it possible when using altcover? If it is, how?