Advanced Testing Concepts
summary
Go 1.7 adds subtests via T.Run and subbenchmarks via B.Run, letting table-driven benchmarks become individual benchmarks (many core benchmarks are rewritten this way). Names become slash-separated and selectable with slash-separated regex selection on the command line; names are escaped and deduplicated with sequence numbers. Parallel semantics run parallelized subtests after their parent returns, so the talk shows using grouped parallelism with nested runs and a small emulation package to keep compatibility with pre-1.7.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:28Go 1.7 is Released!
- 0:50What's New in 1.7?
- 1:33Table-Driven Tests pre 1.7
- 2:31Benchmarks pre 1.7
- 2:54Table-Driven Benchmarks
- 4:12Error Messages pre 1.7
- 5:39Error Messages with Subtests
- 6:16Use of Fatal and Skip pre 1.7
- 8:23Selecting subtests
- 13:10Test Names are Uniqued
- 15:08Common Set Up and Tear Down
- 16:30Per-Test Set Up and Tear Down
- 17:52Semantics
- 19:37Limit which Tests Run in Parallel Together
- 21:04Clean up after Group of Tests
- 22:40Backwards compatibility








