refined-addition-53644
01/20/2023, 3:40 PMhappy-kitchen-89482
01/20/2023, 4:10 PMrefined-addition-53644
01/20/2023, 4:11 PMsource
option inside the config file. I am using pyproject.toml
. So I set
[tool.coverage.run]
omit = ["*/tests/*"]
source = [
"source1",
"source2",
"source3",
]
pytest --cov=source ..
when the filter option is provided. But the results don’t match with running pytest locally with --cov
option. It does include all the source files inside the source directory. In case of pants that doesn’t happen.