pytest-unit-test-execution-and-coverage-reporting

pytest-unit-test-execution-and-coverage-reporting is a skill for Claude Code, Codex from HolobiomicsLab/asb-skill-collections. It costs 48 tokens per session (1,333 once invoked), scanned A, original, Apache-2.0.

A Python testing procedure that runs unit tests with pytest and measures which parts of the code the tests exercise. It reports both whether the tests pass and where coverage is missing.

In plain words
What is it for?
Run tests for changed Python library functions and produce a code-coverage report using pytest and pytest-cov.
Why use it?
It helps catch incorrect changes before merging or releasing and shows untested code paths. It is not intended for full workflows that depend on external services or data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Run tests for changed Python library functions and produce a code-coverage report using pytest and pytest-cov.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HolobiomicsLab/asb-skill-collections --skill pytest-unit-test-execution-and-coverage-reporting
Clone the repo
git clone --depth 1 https://github.com/HolobiomicsLab/asb-skill-collections

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pytest-unit-test-execution-and-coverage-reporting

README.md
[![agentmods](https://agentmods.dev/badge/skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting/github.svg)](https://agentmods.dev/skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting)
Your own site
<a href="https://agentmods.dev/skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting"><img src="https://agentmods.dev/badge/skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pytest-unit-test-execution-and-coverage-reporting

Your own site · 80×15
<a href="https://agentmods.dev/skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting"><img src="https://agentmods.dev/badge/skills/holobiomicslab/asb-skill-collections/pytest-unit-test-execution-and-coverage-reporting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01333
Opus 5 $0.00024 $0.00666
Sonnet 5 $0.00010 $0.00267
Haiku 4.5 $0.00005 $0.00133

Measured 6d ago against content hash fbd3d882c440, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

pytest-unit-test-execution-and-coverage-reporting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

collections/epigenomics/v1/skills/pytest-unit-test-execution-and-coverage-reporting/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pytest-unit-test-execution-and-coverage-reporting

Summary

Execute unit tests on a Python package using pytest, measure code coverage with pytest-cov, and report both functional correctness and coverage metrics. This skill verifies that library functions behave as expected and identifies untested code paths.

When to use

Apply this skill after implementing or modifying Python library functions (such as utility functions in cooltools.lib subpackages) to verify correctness and identify gaps in test coverage before merging changes or releasing code.

When NOT to use

  • Package contains no unit tests or test infrastructure—establish test files first before running pytest.
  • Testing integration behavior or end-to-end workflows requiring external dependencies, data files, or services—use integration test frameworks or fixtures instead.
  • Code coverage is not a project requirement or concern—pytest can still execute tests, but the -cov extension adds overhead unnecessary in purely pass/fail scenarios.

Inputs

  • Python package source code with unit tests
  • pytest configuration file (pytest.ini or setup.cfg with [tool:pytest] section, optional)
  • Test files following pytest naming conventions (test_*.py or *_test.py)

Outputs

  • Unit test execution report (PASSED/FAILED status per test)
  • Code coverage percentage and per-file coverage metrics
  • Coverage report showing line-by-line execution status

How to apply

Navigate to the root of the repository and run pytest with the pytest-cov extension to execute all unit tests and simultaneously measure code coverage. The framework will discover and execute all test files matching standard naming conventions (test_*.py or *_test.py), report pass/fail status for each test, and generate a coverage report showing which lines and branches were executed during testing. Examine the coverage output to identify functions or code paths not yet covered by tests, and use those results to guide additional test writing before considering the test suite complete.

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 107 lines · 48 tokens per session scan A fbd3d882c440

Subscribe to this mod's changes

pytest-unit-test-execution-and-coverage-reporting is a skill published in the GitHub repository HolobiomicsLab/asb-skill-collections (15 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,333 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

verify

Verify harness changes at the package boundary — build dist, link the package into a scratch consumer, drive runAgent/tools/gateways against a real Postgres via podman. Use after changing @inflexa-ai/harness when the CLI does not yet consume the change.

inflexa-ai/inflexa · 57 tokens

api-testing

Testing patterns for MCP tool/resource handlers using createMockContext and Vitest. Covers mock context options, handler testing, McpError assertions, format testing, Vitest config setup, and test isolation conventions.

cyanheads/protein-mcp-server · 46 tokens

add-test

Scaffold a test file for an existing tool, resource, or service. Use when the user asks to add tests, improve coverage, or when a definition exists without a matching test file.

cyanheads/protein-mcp-server · 41 tokens

bio-applied-testing-cicd

Write pytest tests/fixtures for bio functions and GitHub Actions CI with pytest-cov, ruff, black, mypy. Use when adding tests to a bio tool, writing conftest.py fixtures, or building tests.yml/lint.yml CI workflows.

Pavel-Kravchenko/Bioinformatics · 60 tokens

field-test

Exercise tools, resources, and prompts against a live HTTP server via MCP JSON-RPC over curl. Starts the server, surfaces the catalog, runs real and adversarial inputs, and produces a tight report with concrete findings and numbered follow-up options. Use after adding or modifying definitions, or when the user asks to…

cyanheads/pubchem-mcp-server · 76 tokens

add-test

Scaffold a test file for an existing tool, resource, or service. Use when the user asks to add tests, improve coverage, or when a definition exists without a matching test file.

cyanheads/pubchem-mcp-server · 41 tokens