Skip to content
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

Coverage omit argument not being passed to poe #264

Open
ddc opened this issue Dec 17, 2024 · 2 comments
Open

Coverage omit argument not being passed to poe #264

ddc opened this issue Dec 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ddc
Copy link

ddc commented Dec 17, 2024

Steps to reproduce:
Use the --omit argument along with the character * to coverage run command

pyproject.toml

[tool.poe.tasks]
test = "coverage run --omit=tests/* -m pytest -v"

Output:

ddc@local:$ poe test
Poe => coverage run --m pytest -v
@nat-n
Copy link
Owner

nat-n commented Dec 19, 2024

Hi @ddc, thanks for raising this. Looks like a bug in the the shell command parsing.

I'll look into fixing this when I have some time, but in the mean time It'll probably work expected for you if instead you do --omit tests/*.

@nat-n nat-n added the bug Something isn't working label Dec 19, 2024
@ddc
Copy link
Author

ddc commented Dec 19, 2024

Hi!
Another workaround for this is to have the coverage run inside the pyproject.toml

[tool.coverage.run]
omit = [
    "tests/*"
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants