Tests should follow consistent structure and provide high-signal coverage.

Apply these rules: 1) Put tests in dedicated files

Example pattern:

// in source file
#[cfg(test)]
#[path = "my_module_tests.rs"]
mod tests;

2) Keep tests concise and behavior-focused

3) Consolidate related checks into regression-style tests

4) Assert complete, observable sequences

5) Ensure cross-platform coverage when you condition tests

These practices improve maintainability, reduce test brittleness, and ensure coverage remains accurate as behavior evolves.