programming/rust-testing/SKILL.md
Rust testing patterns for unit, integration, async, doc, property, snapshot, and benchmark-adjacent tests. Use when writing or reviewing tests for `.rs` code, reducing flakiness, designing fixtures/fakes, or improving CI confidence in Rust crates and workspaces.
npx skillsauth add aeondave/malskill rust-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
High-signal guidance for Rust tests that are deterministic, maintainable, and worth running.
Use this skill when tests are part of the change, when flakiness needs to die quietly, or when CI needs stronger signal.
cargo test, doctests, and any nextest/coverage stepsLoad on demand:
references/unit-and-integration.md — use when deciding what belongs beside the code vs under tests/references/async-and-boundaries.md — use when testing async code, time, IO, and network boundariesreferences/property-snapshot-and-mocks.md — use when example-based tests are not enough or output is bulkyreferences/coverage-and-ci.md — use when wiring coverage, nextest, or stable CI gatesreferences/commands.md — use for the most common Rust test commands and selectorsdevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.