Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
PowerShell - Added coverage collector #59009
Added a wrapper that will collect code coverage of modules and module_utils.
I've had a look into the performance problems and have been able to improve the time it takes for a module to run. Still not the same as a non coverage run but the majority of the extra time is now taken up by internal functions we have no control over.
I have also looked into Set-PSDebug to see if line tracing is a better candidate for coverage collection but it is not feasible because;
Now that I am somewhat happy with the actual coverage collection process, I need to figure out the best way to integrate that into ansible-test and generate the code coverage xml report to be sent to Code Cov. The following questions need to be answered;