how to make py.test –cov skip virtualenv directory

In the root of your project, create file .coveragerc containing:

[run]
omit = path_to_libs_to_omit/*

Depending on your setup, you might need to add --cov-config=path/to/.coveragerc as option to the py.test command.

There are more options you can use to configure coverage.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)