google/capsem/dev-testing-python
Claude Code and agent skill by google/capsem
- vendor
Checking that the SKILL.md file is still in the repository.
Python test infrastructure for capsem-builder. Use when running Python tests, checking coverage, or working with golden fixtures and generated schemas.
Install
npx vskill@latest install google/capsem/dev-testing-pythonSKILL.md
The same SKILL.md was published earlier as google/capsem/dev-testing-python.
Python Testing (capsem-builder)
Quick reference
Package config
build_system/pyproject.toml:
- Distribution:
capsem-builder - Import: direct
build_system/builder/mapping tocapsem_builder - Entry point:
capsem-builder = capsem_builder.gatelaunch:builder_main, which
selects the project interpreter before dispatching to the image CLI
- Build: setuptools, with no nested
src/or compatibility package tree - Tests:
build_system/tests/, using the lockedbuild_system/uv.lock
The gate already lives in build_system/builder/gate/. The installed package mapping and pytest's configured search paths own imports; do not add an obsolete source root to PYTHONPATH. Explicit -c and --rootdir keep mixed image, gate and cross-system tests under the same configuration and import namespace.
Test directory: build_system/tests/image/
| File | What it covers | |
|---|---|---|
test_validate.py | TOML config linting, error codes E001-E305, warnings W001-W012 | |
test_models.py | Pydantic image and image-workspace models | |
test_cli.py | Backend-only Click CLI surface | |
test_docker.py | Jinja rendering and image-build execution primitives | |
test_manifest.py | BOM collection, manifest rendering, package parsers | |
test_config.py | TOML loading, defaults generation, roundtrip | |
test_doctor.py | Build prerequisite and source-completeness checks | |
test_audit.py | Trivy/grype parsing and severity summaries | |
test_image_build_backend.py | Private capsem-admin backend command | |
test_image_module_boundary.py | Exact source, package, and entrypoint ownership |
Coverage
- Floors, combined coverage and report locations belong to
config/gate.toml
and the owning gate steps. A focused --no-cov run is diagnostic feedback.
codecov.yml: builder component includesbuild_system/builder/**
Golden fixtures and cross-language conformance
Golden fixture at tests/settings_spec/golden.json with expected output at tests/settings_spec/expected.json. Three language parsers must produce identical results:
| Language | Test file | |
|---|---|---|
| Python | tests/test_settings_spec.py | |
| Rust | crates/capsem-core/tests/settings_spec.rs | |
| TypeScript | web/app/src/lib/__tests__/settings_spec.test.ts |
If you change the settings schema (node types, metadata fields), all three must be updated together.
Schema generation pipeline
just _generate-settingsruns the settings-generation owner. Wrap this direct
development command with the bounded runner specified in AGENTS.md.
- Rust reads
config/settings/ui-metadata.generated.jsonviainclude_str!()inregistry.rs - TypeScript validates against
config/settings/schema.generated.jsonin conformance tests
In-VM tests (NOT pytest on host)
guest/artifacts/diagnostics/ contains the pytest tests that run INSIDE the VM via just exec "capsem-doctor". These are NOT part of the host uv run --project build_system --frozen pytest suite. They test the guest environment (mounts, networking, sandbox, MCP, runtimes). See /dev-testing-vm for details.
Source layout
Runtime image templates remain under config/docker/; they are not Python package data and do not move into build_system/.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 25 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dev-testing-python/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 8
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google/capsem/dev-testing-python)