“Write tests… first? That sounds backwards.” I know exactly what you mean, but stay with me. This is going somewhere… backwards, and in high heels!
All tagged gotestdox
“Write tests… first? That sounds backwards.” I know exactly what you mean, but stay with me. This is going somewhere… backwards, and in high heels!
Will AI coding agents pirate all our jobs? Not if we take back control, using my six-step PIRATE workflow for shipboard discipline.
Tests communicate a lot of information, to readers, other developers, and even our future selves. Well-written tests focus on a single unit of behaviour that can be described in a brief sentence, and we can use that sentence as the name of the test.
In Part 2 of a series about writing packages, not programs, we see how to test a package that prints to the terminal, and use the result to build our “hello, world” CLI tool.
If you’re a BIT student, are you ready for your green belt test? If you’re studying independently, check your Go skills and see whether you’d pass this demanding certification.