Detect setup error as a failing test

Fixes #50
This commit is contained in:
Eyal Posener
2017-04-19 15:58:15 +03:00
parent e02a3f88c0
commit 4e217bedba
4 changed files with 38 additions and 8 deletions

View File

@ -520,7 +520,7 @@ var testCases = []TestCase{
Name: "package/name/failing1",
Tests: []*parser.Test{
{
Name: "build failed",
Name: "[build failed]",
Time: 0,
Result: parser.FAIL,
Output: []string{
@ -533,7 +533,7 @@ var testCases = []TestCase{
Name: "package/name/failing2",
Tests: []*parser.Test{
{
Name: "build failed",
Name: "[build failed]",
Time: 0,
Result: parser.FAIL,
Output: []string{
@ -542,6 +542,22 @@ var testCases = []TestCase{
},
},
},
{
Name: "package/name/setupfailing1",
Tests: []*parser.Test{
{
Name: "[setup failed]",
Time: 0,
Result: parser.FAIL,
Output: []string{
"setupfailing1/failing_test.go:4: cannot find package \"other/package\" in any of:",
"\t/path/vendor (vendor tree)",
"\t/path/go/root (from $GOROOT)",
"\t/path/go/path (from $GOPATH)",
},
},
},
},
},
},
},