ambitious-student-81104
08/30/2021, 9:33 PM.coveragerc
file to do this. However I noticed that once I added this file, my test runs 10x slower. What is the problem and how can I fix it?ambitious-student-81104
08/30/2021, 9:34 PM# .coveragerc to control coverage.py
[run]
# This is required for pants to work
relative_files = True
# Measure branch coverage in addition to statement coverage
branch = True
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
omit =
# omit anything in a .local directory anywhere
*/.local/*
# omit everything in /usr
/usr/*
# omit third-party code
**/dagster_snowflake/*
# omit test files
**/test/*
hundreds-father-404
08/30/2021, 9:45 PMambitious-student-81104
08/30/2021, 9:46 PM.coveragerc
! which is kind of bizarre to me. Once I rename that file to something else (so it's not used when pants runs coverage) it's blazing fastambitious-student-81104
08/30/2021, 9:46 PMhundreds-father-404
08/30/2021, 9:53 PMambitious-student-81104
08/30/2021, 9:53 PMambitious-student-81104
08/30/2021, 9:57 PMbranch=True
makes it a bit slower, but having the section [report]
(even when the section is left empty) will make it much slowerambitious-student-81104
08/30/2021, 10:01 PMhappy-kitchen-89482
08/30/2021, 10:02 PMhappy-kitchen-89482
08/30/2021, 10:02 PMhappy-kitchen-89482
08/30/2021, 10:02 PMambitious-student-81104
08/30/2021, 10:02 PMbusy-vase-39202
08/30/2021, 10:04 PMcurved-television-6568
08/31/2021, 5:01 AM