rstest-debugging
Installation
SKILL.md
Rstest debugging
Diagnose the measured lifecycle stage before changing configuration. Keep behavior and the test manifest fixed, change one variable at a time, and remove experiments that do not produce a repeatable benefit.
Workflow
- Establish comparable single-file and full-scope baselines with
references/performance-measurement.md. - Run
rstest --tracewhen supported and classify the cost as host build/startup, runtime load/setup/collect, test bodies/hooks, or CLI/report/teardown overhead. - Use
DEBUG=rstestfor resolved config and build output. For Rstest 0.11.7+ experimental per-test bundle coverage, followreferences/performance-measurement.md. Use Rsdoctor only after evidence points to the compiler. Use verbose reporting or a profiler only after narrowing to runtime files/cases. - If dependency loading or compilation is implicated, read
references/dependency-bundling.md. Compare the environment default,bundleDependencies: false, andbundleDependencies: true; neither bundling nor externalization is universally faster. - If a fully mocked heavy module still reaches the build graph, read
references/mocked-module-build-graph.mdbefore testing an exact external. - If assets, console output, pools, isolation, or memory dominate, read
references/runtime-output-memory.md. - Rerun the representative file and full scope. Keep a change only when behavior, discovery, snapshots, and coverage remain valid and the benefit survives repeated measurement. Remove traces, profiles, and
.rstestdebug artifacts created by the diagnosis before handing off.