How to use nose coat with -timid flag

I would like to run "nosetests --with-coverage" using the Ned Batchelder coverage module , but passing the coverage module is -timid flag. Is there a way (e.g. setting an environment variable) to start coverage using --timid?

+3
source share
1 answer

You have two options:

  • Use the .coveragerc file to provide options for cover.py

  • Instead of covering the nose, run the nose inside the cover:

    coverage run c:\python25\scripts\nosetests-script.py 
    

(sorry for the syntax of Windows if you are not on Windows)

+3
source

Source: https://habr.com/ru/post/1743308/


All Articles