dev-testing-python

Automate pytest runs, coverage collection, and schema validation for capsem-builder.

68|10|Updated Sep 26, 2025
One-click install
npx skills add https://github.com/google/capsem --skill dev-testing-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-testing-python
Source: https://github.com/google/capsem/tree/main/skills/dev-testing-python
Command: npx skills add https://github.com/google/capsem --skill dev-testing-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python test infrastructure for the capsem-builder package. It enables reliable test execution, coverage verification, debugging test failures, working with golden fixtures, and generating schemas across the Capsem toolchain.

Core Features & Use Cases

  • Automated pytest configuration and test execution for capsem-builder components.
  • Coverage enforcement with configurable floors and cross-language conformance tests.
  • Schema generation pipeline and golden fixtures management to support stable releases.

Quick Start

Run pytest to execute the Python test suite and verify coverage for capsem-builder.

Frequently Asked Questions about dev-testing-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pytest execution and collect coverage data for a Python package?

Automating pytest execution and collecting coverage data requires configuring a pyproject.toml to run tests, enforce configurable coverage floors, and generate reports for the Python codebase.

How do you manage golden fixtures during Python testing?

Golden fixtures management in Python testing involves maintaining stable reference files to validate test outputs, supporting reliable regression checks and stable releases across the toolchain.

Can I run cross-language conformance tests using pytest?

Cross-language conformance tests can be run using pytest to validate behavior between different language implementations within the toolchain, executed either locally or in-VM.

What is a schema generation pipeline in Python test infrastructure?

A schema generation pipeline in Python test infrastructure automates the creation and validation of schemas, ensuring data formats remain consistent and conformant across components during testing.

Does pytest coverage enforcement require a specific configuration file?

Pytest coverage enforcement relies on a configured pyproject.toml file to set up test execution, define coverage floors, and apply rules across unit and integration test suites.

How do I debug Python test failures in a local development environment?

Debugging Python test failures locally involves running the pytest suite to isolate failing components, reviewing coverage gaps, and validating schemas against golden fixtures.