Skip to content

Commit

Permalink
Add a .coveragerc file to fix coverage for playwright
Browse files Browse the repository at this point in the history
Playwright uses greenlet, which requires concurrency=greenlet for
coverage
microsoft/playwright-python#313

But we can't set it in pyproject.toml as an option for pytest-cov,
we need to put it in a .coveragerc
pytest-dev/pytest-cov#303
  • Loading branch information
rebkwok committed Jan 19, 2024
1 parent fdea7dc commit 7b52c6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
concurrency = greenlet

0 comments on commit 7b52c6a

Please sign in to comment.