bake-testing
Select and run Bake's Cargo checks when editing, testing, or reviewing Bake Rust code, including property tests, mutation testing, coverage, and parser fuzzing.
- License 许可
- MIT
- 所属仓库
- Justar96/bake
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- bake-testing
- description
- Select and run Bake's Cargo checks when editing, testing, or reviewing Bake Rust code, including property tests, mutation testing, coverage, and parser fuzzing.
03 SKILL.md 正文
Bake testing
Use this skill while changing Bake Rust code. Run Cargo from the repository root so the pinned toolchain applies. Bake checks describes the commands.
The edit loop
- Check formatting with
cargo fmt --all -- --check; format only files you changed if the checkout contains unrelated edits. - Run
cargo clippy --workspace --all-targets --locked -- -D warningsandcargo test --locked -p <crate>for affected crates and their consumers. For one test, add--lib <filter>. - Before pushing, run
cargo test --workspace --lockedandcargo build --workspace --locked. Follow AGENTS.md for terminal and platform checks.
Keep runtime assets and fixtures in their owning Rust crates. When moving an input, check every include path and run its consumer's tests.
Proving the logic
- Properties for untrusted input. Parsers and text transforms get invariant
proptesttests beside their unit tests. Fix the case count withwith_cases; commit regression seeds. - Mutation testing. After changing logic, run
cargo mutants --package <crate>. Address missed mutations or explain why they are equivalent. File moves and comment-only changes do not require mutation testing. - Coverage. Run
cargo llvm-cov --workspace --htmlto inspect untested lines and regions. Confined helpers have instrumentation limits. - Fuzzing. From
fuzz/, usecargo fuzz run <target> -- -max_total_time=120after changing a parser a target reaches. Fix crashes with deterministic tests in the owning crate; do not commit crash artifacts.
Dependencies
Bake pins every Rust dependency to an exact version with a comment saying why, its license, and whether it ships. Edit Cargo.toml by hand instead of running cargo add, and keep test-only crates in [dev-dependencies].
04 同仓库更多 Skills
valid-skill
A valid skill for testing purposes.
unknown-field
A skill with an unknown frontmatter field.
nested-child
Nested skill should be ignored.
root-skill-preferred
Root skill should win.
no-frontmatter
暂无简介
child-skill
A nested skill in a subdirectory.