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
- CSC 151 - Unit Testingeikmeier.sites.grinnell.edu
- Software Engineering at Googleabseil.io
- GitHub - mawrkus/js-unit-testing-guide: 📙 A guide to unit testing in Javascriptgithub.com
- 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
- Why We Built Our Own Background Agentbuilders.ramp.com
- The Joel Test: 12 Steps to Better Code – Joel on Softwarejoelonsoftware.com
- Enabling Agent 3 to Self-Test at Scale with REPL-Based Verificationblog.replit.com
- Introduction to Property Based Testing | by Nicolas Dubien | Criteo Tech Blog | Mediummedium.com
- Building a JavaScript Testing Framework | Christoph Nakazawacpojer.net
- Reading 3: Testingweb.mit.edu