Documentation ¶
Overview ¶
Package test contains test related mage targets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GoBuildTags used when running all tests. GoBuildTags = []string{componentTestTag, integrationTestTag} // TestArgs used in test targets. TestArgs = []string{ "test", "-mod=vendor", "-cover", "-race", "-shuffle=on", } // CoverArgs used in coverage targets. CoverArgs = []string{ "test", "-mod=vendor", "-coverpkg=./...", "-covermode=atomic", "-coverprofile=coverage.txt", "-race", "-shuffle=on", } // Pkgs is the pkg pattern to target. Pkgs = "./..." // CoverExcludePatterns is a list of pkg patterns to prune from coverage.txt. CoverExcludePatterns = []string{} // CoverExcludeFile is the coverage file to prune. CoverExcludeFile = "coverage.txt" )
Functions ¶
This section is empty.
Types ¶
type Test ¶
Test groups together test related tasks.
func (Test) Integration ¶
Integration runs unit and integration tests.
Click to show internal directories.
Click to hide internal directories.