Go test

Test packages:


$ go test [test flags] [packages] [test flags & test binary flags]
                        

The Go test automates the testing of packages named by import paths. It prints a summary of the test results in the format:


ok archive/tar 0.011s
FAIL archive/zip 0.022s
ok compress/gzip 0.033s
                    

Followed by detailed output for each failed packet.

Test files that declare a package with the suffix "_test" will be compiled as a separate package and then linked and run with the main test binary.

go_test.go

Under development...