What code shows the problem? Give us a specific commit of a specific repo that we can check out. If you've already worked around the problem, please provide a commit before that fix.
What commands should we run to reproduce the problem? Be specific. Include everything, even git clone, pip install, and so on. Explain like we're five!
Describe the bug
Playwright tests don't have full coverage in the coverage report, even though the code is run.
To Reproduce
coverage debug sys
is helpful.pip freeze
is helpful.certifi==2024.8.30 charset-normalizer==3.3.2 greenlet==3.0.3 idna==3.10 iniconfig==2.0.0 packaging==24.1 playwright==1.47.0 pluggy==1.5.0 pyee==12.0.0 pytest==8.3.3 pytest-base-url==2.1.0 pytest-playwright==0.5.2 python-slugify==8.0.4 requests==2.32.3 text-unidecode==1.3 typing_extensions==4.12.2 urllib3==2.2.3
08d57d919d6902e01a5d72af90da06ff71452407
git clone
,pip install
, and so on. Explain like we're five!git clone https://github.com/AlmerCarbonEquity/playwright-bug.git
pip install -r requirements.txt
coverage run -m pytest
coverage html
open htmlcov/index.html
Expected behavior
I would expect a 100% coverage here.