~/talk

Testing My Patience: An Exploration of Testing in Rust

Talkat RustNL 2023 · on Wednesday, 2023-05-10· [rust, testing]
slides:none on file

Rust’s built-in test system works for simple projects but breaks at scale: incompatible custom harnesses force test rewrites (had to change every test to use cargo-ad), cargo’s libtest does compile‑time ignores rather than runtime checks, temp‑dir fixtures leak or suppress errors, and data‑driven cases lack per‑case reporting. A custom libtest-compatible harness is under development, with benchmark support and improved JSON output to enable fixture tear down and pytest‑like enumerated tests via a stable extension API.

AI-written summary · about

  1. 0:00Introduction
  2. 0:38Annotation
  3. 0:58Pain Points
  4. 1:58Holy Envy
  5. 2:48Testing in Python
  6. 3:34Conditional Ignores
  7. 3:55Short Circuit
  8. 4:51Fixtures
  9. 6:08Cargo Fixtures
  10. 7:25Lack of Data Generation
  11. 8:33TriBuild
  12. 9:21PiTest
  13. 9:42Scaling Up
  14. 10:11Path Forward
~/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.