Open importnil opened 7 years ago
I, too, would like an answer to this.
I've wound up with a pattern of having package/testutils.go
, and a testutils
package: The former providing scaffolding/mocks to be used in other packages' tests, and the latter providing some scaffolding/mocks that are useful across all packages.
The end result of this is that my coverage numbers tend to be somewhat inflated by the code in these files (less so the testutils
package, since that has no tests of its own and thus doesn't even show up on the coverage list).
Is there a possibility of excluding some files/functions (especially main() thread func) from coverage %?