episode16

command
v0.0.0-...-c6e3130 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

README

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://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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL