Skip to content

Commit

Permalink
playwright coverage WIP(4)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorinrusevljan committed Nov 11, 2024
1 parent be39d61 commit 6ab4f22
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions e2e/playwright.coverage.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[coverage:run]
branch = True
sigterm = True
context = playwright

[coverage:report]
; Regexes for lines to exclude from consideration
[coverage:report]
omit =
/tmp/*

exclude_also =
; 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__.:

; Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod

ignore_errors = True

0 comments on commit 6ab4f22

Please sign in to comment.