rust-testing

Installation
SKILL.md

Codex-RS Contributors Rust Testing Best Practices

A comprehensive guide to writing high-quality Rust tests at the standard established by the top codex-rs contributors. This skill encodes patterns for test architecture, assertions, mock servers, test data, event-driven testing, determinism, snapshot testing, and integration test infrastructure.

When to Apply

  • Writing new tests for any Rust module in codex-rs
  • Adding regression tests for a bug fix (3-6 tests per PR)
  • Creating integration tests that interact with the Responses API via SSE mocks
  • Modifying TUI rendering code that requires snapshot coverage
  • Reviewing test code for adherence to codebase conventions

Rule Categories by Priority

Priority Category Prefix Rules Focus
CRITICAL Test Architecture arch- 6 File organization, imports, isolation
CRITICAL Assertions assert- 5 pretty_assertions, whole-object comparison
HIGH Mock Servers mock- 6 wiremock, SSE builders, ResponseMock
Related skills

More from pproenca/dot-skills

Installs
94
GitHub Stars
141
First Seen
Jan 29, 2026