What problem does it solve?
The brepjs CAD library supports four distinct geometry kernels, each with unique behavioral quirks, strict code coverage thresholds, and complex CI/pre-commit quality gates. Writing tests that run reliably across all kernels, meet coverage requirements, and avoid common flakiness is time-consuming and error-prone without explicit, repository-specific guidance. This skill eliminates that friction by providing end-to-end instructions for the entire brepjs testing workflow.
Core Features & Use Cases
- Cross-kernel test authoring: Guides you to write kernel-portable test skeletons, handle kernel-specific capability gaps and behavioral divergences via the official registry, and avoid common pitfalls like bare vitest runs that unintentionally fan out to all kernel projects.
- Coverage and quality gate compliance: Explains how to meet strict coverage thresholds, troubleshoot coverage failures, and pass pre-commit and CI checks without unnecessary threshold lowering.
- Regression and performance testing support: Covers writing regression tests, running stress and benchmark suites, and interpreting performance regression results to catch slowdowns early.
- Use Case: When you add a new fillet operation to brepjs, this skill walks you through writing tests that run across all supported kernels, handling any kernel-specific divergence, verifying coverage meets the required floor, and confirming no performance regressions in related benchmarks.
Quick Start
Use the writing-tests skill to add a cross-kernel regression test for the new chamfer operation you just merged into brepjs, ensuring it passes the occt-wasm default gate and meets coverage requirements.