You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Hello!
I am trying to exclude code in the tox report, from what I gathered online I am trying to use the following in my tox.ini file:
[report]
exclude_lines=
pragma: no cover
pragma: ${MYSQL_TESTS} cover
But it doesn't seem to work, especially for the environment variable (spawning a docker container where I run all tests), for example MYSQL_TESTS=NO.
On my code i have it something like
for env. variable pragma, expecting the whole function/class to be excluded:
def foo(params): # NO cover
...
for normal pragma, expecting the whole function/class to be excluded:
def foo(params): # no cover
...
Some modules dont have to be tested, when another module is being tested, and I am trying to exclude them from the final report (when I test for mongo, dont include sql code in the coverage report).
Hello!
I am trying to exclude code in the tox report, from what I gathered online I am trying to use the following in my tox.ini file:
But it doesn't seem to work, especially for the environment variable (spawning a docker container where I run all tests), for example MYSQL_TESTS=NO.
On my code i have it something like
Some modules dont have to be tested, when another module is being tested, and I am trying to exclude them from the final report (when I test for mongo, dont include sql code in the coverage report).
This report right here:
The way I run my tests is:
Could someone help me out please? Am i setting this wrong?
The text was updated successfully, but these errors were encountered: