News for hackers. Stuff that matters.
Re:Writing Good Unit Tests; Don’t Mock Database Connections by HiJon89 on Thursday April 21, 2022 @12:59PM (#31112024)

  We don’t need to write a test that tests this function as a whole, we can test the parts we care about independently.
What could possibly go wrong :)
Re:Writing Good Unit Tests; Don’t Mock Database Connections by wagslane on Thursday April 21, 2022 @01:05PM (#31112122)
Well this is about unit tests - you should probably write an integration test for that.