3 ms·
I find the repl invaluable for writing unit tests. I think about what I want to test, try it out in the repl, refine it for better generality, and then basicall
by dreamcompiler 3y ago
I find the repl invaluable for writing unit tests. I think about what I want to test, try it out in the repl, refine it for better generality, and then basically copy/paste it into a file full of unit tests.
- Hirrolot 3y agoGood point, gotta try it.
- JenrHywy 3y agoYou can get a very similar experience with hot-reloading. In C# my current test-writing workflow is: 1. write the basic test scaffolding 2. debug, stepping until I get to a point in the test that needs to change 3. modify the test code (and save, which hot-reloads) 4. move the execution point to before my change 5. GOTO 2. There are some changes that can't be hot-reloaded, but I've been surprised and how flexible it is.