mage: test to run tests

This commit is contained in:
Cadey Ratio 2017-10-01 22:24:19 -07:00
parent cf94f0a59f
commit 6038f2f151
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
2 changed files with 9 additions and 1 deletions

View File

@ -187,8 +187,17 @@ func Package() {
}
}
// Version is the version as git reports.
func Version() {
ver, err := gitTag()
qod.ANE(err)
qod.Printlnf("route-%s", ver)
}
// Test runs all of the functional and unit tests for the project.
func Test() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
shouldWork(ctx, nil, wd, "go", "test", "-race", "-v", "./...")
}

View File

@ -1 +0,0 @@
xena@greedo.xeserv.us.17867:1486865539