-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--omit
command line flag and config values are not merged
#1486
Comments
Unfortunnately, in pre-6.6, the following issues affect the results: - nedbat/coveragepy#1407 - nedbat/coveragepy#1486
Unfortunnately, in pre-6.6, the following issues affect the results: - nedbat/coveragepy#1407 - nedbat/coveragepy#1486
Unfortunnately, in pre-6.6, the following issues affect the results: - nedbat/coveragepy#1407 - nedbat/coveragepy#1486
Unfortunnately, in pre-6.6, the following issues affect the results: - nedbat/coveragepy#1407 - nedbat/coveragepy#1486
This would be a change in how the command line arguments are used. Can you tell me more about how PyCharm is setting the omit option, and how you are trying to set it? I haven't heard of it doing this before. |
@nedbat I'm running „$FOO with coverage“ with a docker-compose based python interpreter. Inside the container, a command like the following is run:
The In my coveragerc however, I want to omit migrations; the entries are [run]
source_pkgs = […]
omit =
**/alembic/**
.pycharm_helpers
[report]
omit =
**/alembic/** since I don't have any control about the |
Describe the bug
I hope this is not a duplicate, I've looked for a while
I am in a situation where I do not have control over the
--omit
flag under which the coverage process is ran (pycharm does that for me and it is not configurable). However, I have control over thecoveragerc
.Unfortunately, the
--omit
flag seems to overwrite both the[run]
and the[report]
sections'omit=
keys.Environment
`coverage debug sys`
`pip freeze` (shouldn't be relevant)
To Reproduce
Compare the output of
coverage run --debug=config test.py
Output 1
Output 2
Expected behavior
In the second command,
run_omit
should have multiple values, ending withFOOOO
report_omit
should have multiple values, ending withFOOOO
The text was updated successfully, but these errors were encountered: