An attempt to repro nedbat/coveragepy#658
- Clone repo
docker-compose up -d
docker attach protonai-pyspark-container
pip install pytest==7.0.1
pip install coverage==6.2
cd /home/
coverage run --source=./src -m pytest tests/test.py --disable-pytest-warnings
coverage report
Expecting the code in the user-defined function to be "seen" by coverage and therefore have 100% code coverage.
# coverage report
Name Stmts Miss Cover
---------------------------------
src/code.py 11 5 55%
---------------------------------
TOTAL 11 5 55%