Skip to content

Commit

Permalink
- changed to disable any failing tests upon startup to better
Browse files Browse the repository at this point in the history
  handle flaky and possibly manually created, failing tests;
  • Loading branch information
jaltmayerpizzorno committed Feb 29, 2024
1 parent 3502ca6 commit cbb9efc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/coverup/coverup.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,8 @@ def main():
print("Continuing from checkpoint; ", end='')
else:
try:
print("Measuring test suite coverage... ", end='')
coverage = measure_suite_coverage(tests_dir=args.tests_dir, source_dir=args.source_dir,
pytest_args=args.pytest_args)
coverage = disable_interfering_tests()

except subprocess.CalledProcessError as e:
print("Error measuring coverage:\n" + str(e.stdout, 'UTF-8', errors='ignore'))
return 1
Expand All @@ -641,7 +640,7 @@ def main():

coverage = state.get_initial_coverage()

print(f"initial coverage: {coverage['summary']['percent_covered']:.1f}%")
print(f"Initial coverage: {coverage['summary']['percent_covered']:.1f}%")
# TODO also show running coverage estimate

segments = sorted(get_missing_coverage(state.get_initial_coverage(), line_limit=args.line_limit),
Expand Down

0 comments on commit cbb9efc

Please sign in to comment.