News for hackers. Stuff that matters.
Re:Automatically Make Unit Tests by rbanffy on Wednesday May 19, 2021 @11:06AM (#27209699)
Makes sense, but it's always good to capture the intent of the test. If it is to prevent a regression, having data about the issue that was fixed is vital.

In general, I prefer to start writing tests, just enough the tests fail but call the functionality (this makes API design flaws obvious), then actually build the functionality and, finally, make the test conditions reflect what we need.

There are no comments on this comment yet.