test

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package test contains test related helpers to be used in mage targets.

Index

Constants

This section is empty.

Variables

View Source
var DefaultTestArgs = []string{
	"test",
	"-mod=vendor",
	"-cover",
	"-race",
}

DefaultTestArgs used when running tests.

Functions

func Cover

func Cover(buildTags ...string) error

Cover runs Go test and produce full code coverage result and accepts build tags.

func CoverDefault

func CoverDefault() error

CoverDefault runs Go test and produce full code coverage result and uses default build tags.

func Run

func Run(tags, extraArgs []string, pkg string) error

Run Go tests with cover and race flags enabled. Accepts build tags, extra args and a specific pkg.

func RunDefault

func RunDefault() error

RunDefault Go tests with cover, race flags enabled, with default build tags and default pkg.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL