Post

Something early career software engineers struggle with is the code quality of the tests. The tests ought to be readable and maintainable like your main code; not an unmaintainable copy pasta mess. Invest in tools to make your tests concise.

In my experience, well-maintained critical components usually have a 1:1 lines of code to test code ratio in Go —sometimes tests are more. If they’re the majority of your codebase, they deserve to be crafted better.

0 reposts3 likes

No replies yet.