Instrument Code in CI/CD Pipeline, Execute Integration tests Later Against Deployed Instrumented Code #206
Replies: 5 comments 6 replies
-
Yes, that's just the Instrument now, test later, collect coverage after that mode of operation, with the expected level of other things going on in the middle. If this is all on the same machine and the test process has write access to the folder the coverage report was placed in, you're all good. In the case where instrumenting is done on one (possibly transient virtual) machine and testing on another, the absolute path of the So, for example, if the instrumentation puts the coverage file as, say, To collect the data as a report, assemble the original report created during instrumentation and all the Variants:
|
Beta Was this translation helpful? Give feedback.
-
In this distributed system, the text value of For the current set-up, instrumenting without Depending on the metrics you are gathering, what output format you want, and whether your test runner places a time limit on Of course a simpler approach (the use case implicitly assumed) would be to defer instrumentation until after test deployment, but before running tests. As you already have Going into more implementation detail - The function of the When the instrumented code executes, the recorder assembly looks at the When the process running the instrumented code terminates, if the control file never existed during the run, the (NCover or OpenCover format) empty coverage report The function of |
Beta Was this translation helpful? Give feedback.
-
Release 8.8.10 offers the |
Beta Was this translation helpful? Give feedback.
-
@SteveGilham we have decided to pursue another path as the security hurdles were too much trying to collect coverage from a pipeline on different subnet. So what we have today is in our build pipeline we are instrumenting the code using: |
Beta Was this translation helpful? Give feedback.
-
The coverage template file will appear in whatever is the process current working directory by default. However for this sort of scenario, using the The line
concerns me, as The sort of process I would expect goes something like
or perhaps
Then you can zip/tar/whatever up the After the tests are run, the you can do |
Beta Was this translation helpful? Give feedback.
-
I would like to instrument my code in my yml ci/cd pipeline, have the instrumented assemblies deployed to an environment. Unit tests will be run as part of that pipeline. I would then like to exercise the deployed and instrumented code via integration tests in a separate pipeline and collect code coverage metrics for the deployed code in step 1. What approach would I explore to make that happen?
Beta Was this translation helpful? Give feedback.
All reactions