[rvelaz] Fix test report when the program writes to stdout

This commit is contained in:
rvelaz
2018-01-05 17:07:20 +01:00
parent a009038a63
commit 0e171eb667
4 changed files with 43 additions and 1 deletions

View File

@ -738,6 +738,32 @@ var testCases = []TestCase{
},
},
},
{
name: "19-pass.txt",
reportName: "19-report.xml",
report: &parser.Report{
Packages: []parser.Package{
{
Name: "package/name",
Time: 160,
Tests: []*parser.Test{
{
Name: "TestZ",
Time: 60,
Result: parser.PASS,
Output: []string{},
},
{
Name: "TestA",
Time: 100,
Result: parser.PASS,
Output: []string{},
},
},
},
},
},
},
}
func TestParser(t *testing.T) {