mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Document snippet test placement policy (#9137)
Assisted-by: OpenAI Codex:model version unavailable
This commit is contained in:
1 parent
9c832ee26c
commit
28f19a476f
1 file changed
+3
@@ -116,6 +116,9 @@ rm -r target/debug/build/rustpython-* && find . | grep -E "\.pyc$" | xargs rm -r
|
||||
|
||||
### Testing
|
||||
|
||||
- Never add tests to `extra_tests/snippets` that duplicate coverage in `Lib/test`.
|
||||
- Prefer adding tests to the most closely related existing file in `extra_tests/snippets` rather than creating a new snippet file.
|
||||
|
||||
```bash
|
||||
# Run Rust unit tests
|
||||
cargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi
|
||||
|
||||
Reference in new issue
Block a user