Metadata-Version: 2.4
Name: hy-coverage
Version: 0.1.1
Summary: Cache-independent coverage.py plugin for Hy source files with branch coverage
Project-URL: Homepage, https://github.com/norci/hy-coverage
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: coverage>=7.6
Requires-Dist: hy>=1.3
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"

# hy-coverage

A coverage.py plugin for Hy source files. It reports coverage against `.hy`
source lines, supports branch coverage, and keeps Python bytecode cache state
out of the result. Compile-only macro lines are excluded from the denominator;
shared helpers that also run at runtime keep their coverage.

Requires Hy >= 1.3 and coverage >= 7.6.

## Install

```console
pip install hy-coverage
```

Install from source:

```console
pip install git+https://github.com/norci/hy-coverage.git
```

## Configure

Add the plugin to `.coveragerc`. `core = ctrace` is required.

```ini
[run]
core = ctrace
plugins = hy_coverage
source = .
branch = true
```

The package works with an unmodified Hy installation. It installs its
compile-time tracking hooks when coverage.py loads the plugin.
