Follow

I've started to really enjoy writing tests for the code I'm working on. They are fun when you view them as a puzzle with a clear end, unlike most of software development. It used to be so hard to think of how to write them, with practice, it has gotten a lot easier.

@eighthave Writing tests lead to a different way of developing for me. I always have testing in mind and have thoughts like "this should be a dedicated dependency injected via constructor otherwise I can't test it or mock it here to test some special case"

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml