Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 872 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 872 Bytes

Nested Tests in Go

Watch The Screencast

Go in 5 Minutes, episode 16.

This screencast overviews the new "Subtests" feature in Go 1.7's testing package (https://godoc.org/testing), and how to better organize your tests using them.

Screencast video: https://www.goin5minutes.com/screencast/episode_16_nested_tests/

New Developments!

Outline

  1. Simple syntax
  2. Using for setup/Teardown logic
  • Per-test logic, more fine-grained than TestMain
  1. Advanced usage for table-driven tests
  2. Example code