Skip to content

Commit bcb4846

Browse files
committed
Replace coverage with test-verbose in README.rst
This might be a better example to illustrate Hatch's Tox-like environment-handling functionality.
1 parent 96edfa7 commit bcb4846

File tree

1 file changed

+48
-11
lines changed

1 file changed

+48
-11
lines changed

README.rst

Lines changed: 48 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -324,22 +324,59 @@ Here is an example of one in action:
324324

325325
.. code-block:: console
326326
327-
$ make coverage
328-
cmd [1] | coverage erase
329-
cmd [2] | coverage run -m unittest discover -s tests
330-
..
331-
----------------------------------------------------------------------
332-
Ran 2 tests in 0.021s
333-
334-
OK
335-
cmd [3] | coverage report
327+
$ make test-verbose
328+
────────────────────────────── hatch-test.py3.13 ───────────────────────────────
329+
============================= test session starts ==============================
330+
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 -- venvs/hatch-test.py3.13/bin/python3
331+
cachedir: .pytest_cache
332+
rootdir: /abc_123
333+
configfile: pyproject.toml
334+
plugins: mock-3.14.0, rerunfailures-14.0, xdist-3.6.1
335+
collected 2 items
336+
337+
tests/test_examples.py::ExamplesTestCase::test_quickstart_example PASSED [ 50%]
338+
tests/test_version.py::VersionTestCase::test_version PASSED [100%]
339+
340+
============================== 2 passed in 0.09s ===============================
341+
────────────────────────────── hatch-test.py3.12 ───────────────────────────────
342+
============================= test session starts ==============================
343+
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- venvs/hatch-test.py3.12/bin/python3
344+
cachedir: .pytest_cache
345+
rootdir: /abc_123
346+
configfile: pyproject.toml
347+
plugins: mock-3.14.0, rerunfailures-14.0, xdist-3.6.1
348+
collected 2 items
349+
350+
tests/test_examples.py::ExamplesTestCase::test_quickstart_example PASSED [ 50%]
351+
tests/test_version.py::VersionTestCase::test_version PASSED [100%]
352+
353+
============================== 2 passed in 0.09s ===============================
354+
────────────────────────────── hatch-test.py3.11 ───────────────────────────────
355+
============================= test session starts ==============================
356+
platform linux -- Python 3.11.11, pytest-8.3.4, pluggy-1.5.0 -- venvs/hatch-test.py3.11/bin/python3
357+
cachedir: .pytest_cache
358+
rootdir: /abc_123
359+
configfile: pyproject.toml
360+
plugins: mock-3.14.0, rerunfailures-14.0, xdist-3.6.1
361+
collected 2 items
362+
363+
tests/test_examples.py::ExamplesTestCase::test_quickstart_example PASSED [ 50%]
364+
tests/test_version.py::VersionTestCase::test_version PASSED [100%]
365+
366+
============================== 2 passed in 0.08s ===============================
367+
368+
Skipped 3 incompatible environments:
369+
hatch-test.py3.10 -> cannot locate Python: 3.10
370+
hatch-test.py3.9 -> cannot locate Python: 3.9
371+
hatch-test.py3.8 -> cannot locate Python: 3.8
372+
Combined data file .coverage.dragon.311786.XZHVzPhx
373+
Combined data file .coverage.dragon.311791.XRWZtnFx
374+
Skipping duplicate data .coverage.dragon.311797.XTgleYIx
336375
Name Stmts Miss Branch BrPart Cover
337376
-----------------------------------------------------------
338377
src/abc_123/__init__.py 1 0 0 0 100%
339378
-----------------------------------------------------------
340379
TOTAL 1 0 0 0 100%
341-
cmd [4] | coverage html
342-
Wrote HTML report to docs/source/_static/coverage/index.html
343380
$
344381
345382

0 commit comments

Comments
 (0)