Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could probably write a REPL with the appropriate commands that would build rudimentary test code from lines you executed that did what you wanted them to.

I did exactly this, in a previous job where we were required to unit-test a lot more than I liked. I always mess around with stuff in the REPL a lot anyway, and it was dead simple to write an Emacs command to turn my REPL sessions into unit tests.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: