Documentation
¶
Overview ¶
Package tester provides the functionality needed to test a package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunResult ¶
RunResult contains the results from using Run
func Run ¶
Run takes a list of packages and uses the given Test to fetch and run all the packages tests. It prints progress to the given io.Writer.
func (RunResult) TotalFailed ¶
TotalFailed returns the amount of packages that failed testing
type Test ¶
type Test struct { // Gopath used to fetch the package and run the tests Gopath string // Stdout writer to get the command's output Stdout io.Writer // Stderr writer to get the command's output Stderr io.Writer }
Test contains the details to fetch packages and run tests
func NewTempTest ¶
NewTempTest returns a Test with Gopath set to a clean temporary folder. It returns an error when the temporary folder cannot be created.
func (*Test) Checkout ¶
Checkout allows you to checkout a specific revision of the given package into the Test's gopath
func (*Test) FetchRemote ¶
FetchRemote allows you to fetch commits from another remote source