gorgeous-eve-12553
11/01/2020, 3:42 PMhundreds-father-404
11/01/2020, 5:51 PMgorgeous-eve-12553
11/01/2020, 6:39 PMhundreds-father-404
11/01/2020, 7:46 PMgorgeous-eve-12553
11/01/2020, 9:03 PMhundreds-father-404
11/01/2020, 9:06 PMgorgeous-eve-12553
11/01/2020, 9:50 PMgorgeous-eve-12553
11/01/2020, 9:51 PMhundreds-father-404
11/01/2020, 9:56 PMgorgeous-eve-12553
11/01/2020, 9:58 PMgorgeous-eve-12553
11/01/2020, 9:58 PMgorgeous-eve-12553
11/01/2020, 9:59 PMgorgeous-eve-12553
11/01/2020, 10:00 PMhundreds-father-404
11/01/2020, 10:01 PMgorgeous-eve-12553
11/01/2020, 10:01 PM./pants test ::
gorgeous-eve-12553
11/01/2020, 10:01 PMgorgeous-eve-12553
11/01/2020, 10:02 PMhundreds-father-404
11/01/2020, 10:02 PMgorgeous-eve-12553
11/01/2020, 10:03 PMgorgeous-eve-12553
11/01/2020, 10:03 PMgorgeous-eve-12553
11/01/2020, 10:03 PMhundreds-father-404
11/01/2020, 10:05 PMgorgeous-eve-12553
11/01/2020, 10:06 PMgorgeous-eve-12553
11/01/2020, 10:06 PMhundreds-father-404
11/01/2020, 10:08 PMhundreds-father-404
11/01/2020, 10:11 PMgorgeous-eve-12553
11/01/2020, 10:11 PMgorgeous-eve-12553
11/01/2020, 10:12 PMgorgeous-eve-12553
11/01/2020, 10:12 PMgorgeous-eve-12553
11/01/2020, 10:52 PMhundreds-father-404
11/01/2020, 10:58 PM--no-pantsd
hundreds-father-404
11/06/2020, 11:24 PMhundreds-father-404
11/06/2020, 11:26 PMpytest-cov
to report on .
, meaning everything, whereas we tell coverage.py
to only report on the specific files being used iiuc.
▶ ./pants test src/python/greeter/test_main.py --coverage-py-filter='greeter'
...
Required test coverage of 80.0% reached. Total coverage: 90.91%
...
✓ src/python/greeter/test_main.py:test succeeded.
Name Stmts Miss Cover
-----------------------------------------------------
src/python/greeter/__init__.py 0 0 100%
src/python/greeter/main.py 4 1 75%
src/python/greeter/test_main.py 7 0 100%
-----------------------------------------------------
TOTAL 11 1 91%
hundreds-father-404
11/06/2020, 11:39 PM▶ ./pytest.pex src/python/greeter/test_main.py --cov . --no-header
======================================= test session starts ========================================
collected 3 items
src/python/greeter/test_main.py ... [100%]
---------- coverage: platform darwin, python 3.8.5-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------------------------------------
pytest.pex/.bootstrap/pex/third_party/__init__.py 234 227 3%
src/python/greeter/__init__.py 0 0 100%
src/python/greeter/main.py 4 1 75%
src/python/greeter/test_main.py 7 0 100%
-----------------------------------------------------------------------
TOTAL 245 228 7%
The data is messed up by that pytest.pex
file, which is being included by .
hundreds-father-404
11/06/2020, 11:47 PMhundreds-father-404
11/07/2020, 12:11 AMcoverage.py
fails when writing a reporthundreds-father-404
11/10/2020, 3:00 AM