python - nose2 coverage plugin timing -


I am running a nose 2 test with the coverage plugin. I noticed that decorative, class announcements and work definitions are not being marked as covered, even if I found "real code" below them, which suggests to start coverage "first."

How do I do this through nose 2? I tried exporting NOSE_WITH_COVERAGE = true , but there was nothing like it

Additional References: Finally we are hoping to plug these tests into Jenkins , If this is the case.

ETA: did not work on [coverage] code> always-on = true my nose2.cfg .

To run a stupid-proof way coverage to start coverage, use the nose instead of the nose For example, instead of:

  $ nas 2 blah blah blah  

you can use it:

  $ coverage run - M nose 2 blah blah  

and then only blah blah blah .


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -