
Trials and tribulations of testing in Go
Go Time: Golang, Software Engineering
00:00
Writing Tests Can Help You Write Tests
Tests help document the code. Declaring what you want to have happened, apart from just declamory app once have happened, it also helps document thecode. I tend to do a lot of TDD, wherever it's appropriate, I will write the test code first. And usually I'll just imagine like, I know the kind of problem I want to solve. So I just imagine it exists and I start to write code that uses it. But if I was going to write a package that was going to pass some text and produce some output and some data, then absolutely I would start with a unit test.
Transcript
Play full episode