January 2020
Intermediate to advanced
640 pages
16h 56m
English
In this section, we will be comparing two slightly different approaches when it comes to grouping and executing multiple test cases together. These two approaches, namely table-driven tests and subtests, can easily be implemented using the basic primitives provided by Go's built-in testing package. For each approach, we will discuss the pros and cons and eventually outline a strategy to fuse the two approaches together so that we can get the best of both worlds.