#rusttesting — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #rusttesting, aggregated by home.social.
-
🧪 #Rustlang Tip: Use #[test] with #[ignore] for long-running or resource-intensive tests.
Run all tests: cargo test
Run ignored tests: cargo test -- --ignoredThis helps keep your test suite fast while still allowing those long running tests when needed!
-
🧪 #RustLang Tip
✅ DO: Use Rust's built-in testing framework to write unit tests and integration tests.
❌ DON'T: Skip testing, it's crucial for maintainable code! #RustTesting #TDDRun `cargo test` to see the output!
Learn more: https://doc.rust-lang.org/book/ch11-01-writing-tests.html