Fernando Lins 2ea8e5731a feat: add Python test coverage (#4841)
## Linked issue

Closes #4838

## Summary/motivation

Adds `coverage.py`-based test coverage for both Python test suites
(`pylib` and `qt`). Introduces `just test-py --coverage` and `just
test-py --coverage --html`, plus the `just test --coverage`.

Coverage reports are written to `out/coverage/`.

## How to test
```sh
# Existing behavior unchanged
just test-py

# Terminal summary + enforces thresholds
just test-py --coverage

# Terminal summary + HTML reports under out/coverage/
just test-py --coverage --html

# Umbrella (Python only for now)
just test --coverage
just test --coverage --html
```
### Checklist (minimum)

- [x] I ran `./ninja check` or an equivalent relevant check locally.

### Details

- `coverage` dependency pinned to >=7.13.5 in pyproject.toml.
- The `coverage` umbrella recipe currently delegates to Python only for
now

## Before / after behavior

Before: no `just test-py`, no coverage support.
After: `just test-py` runs Python tests via ninja; `just test-py
--coverage`
runs them with `coverage.py` and enforces minimum line coverage.

---------

Co-authored-by: Abdo <abdo@abdnh.net>
2026-05-15 21:34:38 -03:00
2025-10-27 19:27:50 +07:00
2026-05-05 17:29:18 -04:00
2026-05-05 17:29:18 -04:00
2026-03-31 08:26:59 -04:00
2026-05-15 16:45:41 +03:00
2026-01-11 18:50:16 +07:00
2026-05-05 17:29:18 -04:00
2026-03-31 08:26:59 -04:00
2026-05-05 17:29:18 -04:00
2026-05-05 17:29:18 -04:00
2025-06-29 14:38:35 +07:00
2025-09-17 16:50:13 +10:00
2025-06-29 22:16:59 +07:00
2025-06-19 14:03:16 +07:00
2025-06-19 14:03:16 +07:00
2026-05-11 13:04:24 -04:00
2026-05-15 21:34:38 -03:00
2024-03-31 09:16:31 +01:00

Anki

Build Status Documentation

This repo contains the source code for the computer version of Anki.

About

Anki is a spaced repetition program. Please see the website to learn more.

This repo contains the source code for the computer version of Anki.

Getting Started

Contributing

Want to contribute to Anki? Check out the Contribution Guidelines.

For more information on building and developing, please see Development.

Contributors

The following people have contributed to Anki: CONTRIBUTORS

Anki Betas

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see Anki betas.

License

Anki's license: LICENSE

Description
Anki is a smart spaced repetition flashcard program
Readme 155 MiB
Languages
Rust 45.9%
Python 29.3%
Svelte 11.2%
TypeScript 11%
SCSS 1%
Other 1%