home.social

#rusttesting — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rusttesting, aggregated by home.social.

  1. 🧪 #Rustlang Tip: Use #[test] with #[ignore] for long-running or resource-intensive tests.

    Run all tests: cargo test
    Run ignored tests: cargo test -- --ignored

    This helps keep your test suite fast while still allowing those long running tests when needed!

    #RustTesting #Rust30by30 #Day15

  2. 🧪 #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 #TDD

    Run `cargo test` to see the output!
    Learn more: doc.rust-lang.org/book/ch11-01

    #Rust30by30 #Day3