ENH: New spin coverage command#316
Open
ganesh-k13 wants to merge 3 commits intoscientific-python:mainfrom
Open
ENH: New spin coverage command#316ganesh-k13 wants to merge 3 commits intoscientific-python:mainfrom
spin coverage command#316ganesh-k13 wants to merge 3 commits intoscientific-python:mainfrom
Conversation
ganesh-k13
commented
Mar 3, 2026
| if verbose: | ||
| pytest_args = ("-v",) + pytest_args | ||
|
|
||
| if coverage: |
Contributor
Author
There was a problem hiding this comment.
If this PR is ok, we might want to deprecate this
3 tasks
Member
|
We already have |
Contributor
Author
|
Yes that's the same question I have in #315. So far, there are 2 votes to separate it out. |
Member
|
OK, but your vote is one of them, so perhaps you can explain why you think that's a good idea :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New
spin coveragecommandspin coverage --help Usage: spin coverage [OPTIONS] [PYTEST_ARGS]... 📊 Run tests with Python code coverage Generate coverage reports using pytest-cov. By default, a terminal report is printed. Supports any report type that pytest-cov supports. For file-based reports, use the `type:path` format. Relative paths are placed under `build/coverage/`. To generate an HTML report: spin coverage --cov-report html:htmlcov Multiple report types can be specified: spin coverage --cov-report term-missing --cov-report xml:coverage.xml Run coverage on specific tests: spin coverage -t example_pkg.echo spin coverage example_pkg/tests Pass additional pytest arguments after `--`: spin coverage -- --durations=10 -k "test_foo" Run tests in parallel (requires pytest-xdist): spin coverage -j auto Options: -j N_JOBS Number of parallel jobs for testing with pytest-xdist. [default: 1] -t, --tests TESTS Which tests to run. Can be a module, function, class, or method. -v, --verbose --cov-report TYPE Coverage report type passed to pytest-cov (e.g. term, term-missing, html:dir, xml:file.xml, json:file.json, lcov:file.lcov, annotate:dir). Can be specified multiple times. Defaults to `term`. --no-build Disable building before executing command -C, --build-dir BUILD_DIR Meson build directory; package is installed into './{build-dir}-install'. [env var: SPIN_BUILD_DIR; default: build] --help Show this message and exit.Examples
Notes
coverage#315