Skip to content
Discussion options

You must be logged in to vote

So a tracker is inserted at every line of code to be able to track it's execution, Am I correct?

coverlet injects the tracker at sequence points in the IL which most of the time corresponds to line and column numbers.

Would it be possible to create something like a global flag to enable/disable the trackers globally?

Maybe yes this could work to enable/disabled the tracker that collects the line/branch hits. But as @MarcoRossignoli already mentioned, we don't analyze the code flow. So we wouldn't really know if a line wasn't hit because it wasn't planned to be covered or because of a test not executing the code.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@daveMueller
Comment options

@MarcoRossignoli
Comment options

@JelkeH
Comment options

@daveMueller
Comment options

Answer selected by Bertk
@JelkeH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants