This PR contains multiple updates to code coverage when executed via MuDevOpsWrapper.yml
Removed calculate_code_coverage - This was redundant, as coverage_publish_target could be used instead (by having it not set, or selecting codecov / ado
Updates all usage of coverage_publish_target to be condition of a step, rather than used in a compile time expression for adding / removing steps. This is to support setting the parameter via pipeline variables. This has the unfortunate side effect of the steps always being present in the pipeline build, just skipped, which is not as clean as before.
Updates ado code coverage uploads to be per-matrix-job by utilizing PublishCodeCoverageResults@2 which can merge code coverage results. This resolves #267
Resolves #276 by passing the entire command to subprocess.Popen and passing shell=True to the same.
Adds information to the base Readme on code coverage.
Build verifies uploading to codecov works as expected
Build verifies uploading to ado works as expected
Build verifies not specifying a coverage target works as expected
Breaking Change
calculate_code_coverage must be removed from any yaml file extending MuDevOpsWrapper.yml
This PR contains multiple updates to code coverage when executed via MuDevOpsWrapper.yml
coverage_publish_target
could be used instead (by having it not set, or selecting codecov / adocoverage_publish_target
to be condition of a step, rather than used in a compile time expression for adding / removing steps. This is to support setting the parameter via pipeline variables. This has the unfortunate side effect of the steps always being present in the pipeline build, just skipped, which is not as clean as before.PublishCodeCoverageResults@2
which can merge code coverage results. This resolves #267subprocess.Popen
and passingshell=True
to the same.Build verifies uploading to codecov works as expected Build verifies uploading to ado works as expected Build verifies not specifying a coverage target works as expected
Breaking Change
calculate_code_coverage
must be removed from any yaml file extending MuDevOpsWrapper.yml