From d86eaab80542663063e070fb4c44dfec2aabb13d Mon Sep 17 00:00:00 2001 From: alexion Date: Thu, 17 Sep 2026 09:14:09 -0400 Subject: [PATCH] feat(skills): require descriptive Rust test names --- src/skills/style/rust/rules/files.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/skills/style/rust/rules/files.md b/src/skills/style/rust/rules/files.md index e5f33ef..283cd04 100644 --- a/src/skills/style/rust/rules/files.md +++ b/src/skills/style/rust/rules/files.md @@ -19,6 +19,8 @@ Descriptive file names show which crate or binary owns the code. ### Rule Put Rust tests in separate `*_test.rs` files. +Name each test file after the Rust source file or crate root that it tests. +Do not use generic test file names such as `lib_test.rs` or `main_test.rs`. Do not add inline `#[cfg(test)]` modules. ### Rationale