I'm running nose2 tests with the coverage plugin. I noticed that decorators, class declarations, and function definitions aren't being marked as covered, even though the "actual code" underneath them is. I found this answer, which suggests starting coverage "earlier."
How would I do this via nose2? I tried exporting NOSE_WITH_COVERAGE=True
, but that didn't seem to do anything.
Additional context: eventually we're hoping to plug these tests into Jenkins, if that matters.
ETA: adding a [coverage]
section with always-on = True
to my nose2.cfg
didn't work.