All languages

Go for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists Go ships its testing tools in the compiler toolchain: go test finds tests, runs them in parallel across packages, reports coverage, runs benchmarks, and fuzzes. There is nothing to install and no test…

Go for DevOps: go test, Table-Driven Tests, Coverage, Benchmarks and Fuzzing

Test Go code with nothing but the standard toolchain: table-driven tests with subtests, TempDir and Setenv helpers, reading a failure, coverage, benchmarks with allocation counts (a measured 40x gap), and a fuzz test that states a property and searches for a counterexample.

Sign in free to read this script, along with the rest of the library.

Sign in free