Skip to content
0:00 / 0:00

#go#testing#andrewgerrand

Testing Techniques

The Go Programming Language

35K subscribers • 5 videos on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by Andrew Gerrand, Go team member

Intermediate. Assumes working knowledge.

47K views12 years ago1 recommendation

Programming languagesTools and practiceGoTesting

Andrew Gerrand presents various advanced testing techniques and patterns used in the Go programming language.

This talk was initially presented by Andrew Gerrand at Google I/O 2014 at the Go Developer Sandbox. This recording is from the (somewhat informal) golang-syd meetup in July 2014. The slides are available here → goo.gle/3xwiDmr The demo code is available here → goo.gle/3jIg6he Subscribe to The Go Channel → goo.gle/go-subscribe #GoLang

Why it's here

1 person recommends this

What people say. Highly recommended by Go developers for learning idiomatic testing patterns and subprocess testing.

Moments people linked to

Ameron Stack Overflow • Recommends

…codes. Hence, the need for sub-process testing. I tried sub-process testing technique but modified code so that it include flag for coverage: cmd := exec.Command(os.Args0, "-test.run=TestMain -test.coverprofile=/vagrant/ucover/coverage2.out") Here is original code: https://talks.golang.org/2014/testing.slide#23 Explanation of above slide: link to this video But it doesn't generate cover profile. I haven't been able to figure out why not. It does generate cover profile for main process executing……
6View the answer