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…
Explore this link on the map →saved by
related reading
- CSC 151 - Unit Testingeikmeier.sites.grinnell.edu
- Software Engineering at Googleabseil.io
- The sad state of property-based testing librariesstevana.github.io
- Why Good Developers Write Bad Unit Tests · mtlynch.iomtlynch.io
- Reading 2: Testingweb.mit.edu
- Testing robotics systems in fast-paced startups | Michael Jae-Yoon Chungmjyc.github.io
- The Joel Test: 12 Steps to Better Code – Joel on Softwarejoelonsoftware.com
- Why We Built Our Own Background Agentbuilders.ramp.com
- Building a JavaScript Testing Framework | Christoph Nakazawacpojer.net
- Introduction to Property Based Testing | by Nicolas Dubien | Criteo Tech Blog | Mediummedium.com
- Reading 3: Testingweb.mit.edu
- Val on Programming: What makes a good REPL?vvvvalvalval.github.io