Skip to content

How to generate test coverage report? #2233

@szabgab

Description

@szabgab

Question

I ran

hatch test --cover

on the cloned repository.

It started out running the tests, but after 24 minutes I got a bunch of errors.

I copied a few:

ERROR tests/test_readwrite.py::test_forward_slash_key[False-h5ad-layers] - OSError: could not create numbered dir with prefix test_forward_slash_key_False_h in /tmp/pytest-of-gabor/pytest-4 after 10 tries
ERROR tests/test_readwrite.py::test_write_elem_version_mismatch - OSError: could not create numbered dir with prefix test_write_elem_version_mismat in /tmp/pytest-of-gabor/pytest-4 after 10 tries
ERROR tests/test_x.py::test_io_missing_X[zarr2] - OSError: could not create numbered dir with prefix test_io_missing_X_zarr2_ in /tmp/pytest-of-gabor/pytest-4 after 10 tries
==== 23 failed, 5487 passed, 938 skipped, 183 xfailed, 3896 warnings, 1791 errors in 1432.47s (0:23:52) ====
$ python3 -V
Python 3.13.7
$ df -h /tmp/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            14G  3.4G   11G  25% /tmp
$ du -hs /tmp/pytest-of-gabor/pytest-4/
202M	/tmp/pytest-of-gabor/pytest-4/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions