4 ms·
I've been writing Python unit tests lately too. I stick all the tests in files named test_.....py, have a top level file run-tests.py that runs them all, and t
by foobarian 12y ago
I've been writing Python unit tests lately too. I stick all the tests in files named test_.....py, have a top level file run-tests.py that runs them all, and then (this on Ubuntu): watch -n 0.1 ./run-tests.py in a window on the side.
Then I can go off and change stuff and as soon as something breaks I see it in the side window. If I break something and the tests don't break, well, time to write more tests :-)