~/talk

Testing strategies and pattern for efficient TDD in Rust

Talkat RustFest Zürich 2017 · 2017-09-30..10-01· [rust, testing]
links:none on file
slides:none on file

Claims that TDD is doable in Rust despite lack of reflection and strict compiler checks and shows concrete patterns that make it efficient: microsteps following red‑green‑refactor, using cargo test plus examples and tests/ integration layout, preferring Result types and handling error paths early, extracting I/O to testable functions, splitting module tests into module_test files and using pub use for imports. Advice: keep tests small, avoid DRYing them with macros, expect large test-to-code ratios (e.g. hundreds LOC → ~2000 LOC tests) and it yields production confidence.

AI-written summary · about

  1. 0:00Thomas Wickham Testing strategies and patterns for efficient TDD in Rust
  2. 0:12Efficient TDD in RUST RustFest 2017 Zurich
  3. 3:12Tests Driven Development
  4. 3:39Why do we test first ?
  5. 4:46Helps my design
  6. 5:18Test my understanding
  7. 6:56How does it works?
  8. 7:18Red Green 7 Refactor
  9. 8:37How to choose the next test ?
  10. 9:05A quick example
  11. 13:00General tips and remarks
  12. 14:28Unit tests in _test modules
  13. 15:16Functional tests in examples/ directory and Documentation exemples
  14. 17:31Think readability: Please Do Repeat Yourself in your tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.