Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Makefile
README.md
set.go
set_basic_test.go
set_table_driven_concurrent_test.go
set_table_driven_test.go

README.md

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
You can’t perform that action at this time.