049: Table Driven Tests (Golang)



049: Table Driven Tests (Golang)

049: Table Driven Tests (Golang)

This video take a different approach to refactoring tests. In Episode 043 (https://youtu.be/9NePBQTG2Fo) we delete tests that duplicate the coverage of the same behaviour. Sometimes you need to keep those test but still want to keep your test files tidy.

For this episode we look at how we can use Table Driven Tests in Golang to tidy up the tests. Instead of deleting the test that cover the same behaviour we group them in to a Table Test.

The code produced during this episode can be found on GitHub:
https://github.com/testingallthethings/049-table-driven-tests

You can follow me on twitter: https://twitter.com/braddle

** Please Rate, Review, Subscribe and Share these videos **

Comments are closed.