Jane Street Blog - What if writing tests was a joyful experience?
At Jane Street we use a pattern/library called “expect tests” that makes test-writing feel like a REPL session, or like exploratory programming in a Jupyter ...
At Jane Street we use a pattern/library called “expect tests” that makes test-writing feel like a REPL session, or like exploratory programming in a Jupyter notebook—with feedback cycles so fast and joyful that it feels almost tactile. Having used them for some time now this is the only way I’d ever want to write tests. Other languages call these “snapshot” tests—see for example Rust’s expect-test, which seems to have been inspired by our library, or Javascript’s Jest. We were first put onto the idea ourselves by Mercurial’s unified testing format, and so-called “cram” tests, for testing…
saved by
related reading
- The sad state of property-based testing librariesstevana.github.io
- Jane Street Blog - Formal methods and the future of programmingblog.janestreet.com
- GitHub - mawrkus/js-unit-testing-guide: 📙 A guide to unit testing in Javascriptgithub.com
- how I think when I think about programming - alice mazalicemaz.com
- Software Engineering at Googleabseil.io
- Writing Toy Software Is A Joyblog.jsbarretto.com
- Testing robotics systems in fast-paced startups | Michael Jae-Yoon Chungmjyc.github.io
- How to Write Clean, Testable Codeyoutube.com
- Why Good Developers Write Bad Unit Tests · mtlynch.iomtlynch.io
- Formal methods and the future of programmingblog.janestreet.com
- Lightweight property-based testing at Row Zerograntslatton.com
- Reading 2: Testingweb.mit.edu