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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -