diff --git a/go-junit-report_test.go b/go-junit-report_test.go index 5d4e04d..32cb47a 100644 --- a/go-junit-report_test.go +++ b/go-junit-report_test.go @@ -766,12 +766,12 @@ var testCases = []TestCase{ }, }, { - name: "20-trio.txt", + name: "20-parallel.txt", reportName: "20-report.xml", report: &parser.Report{ Packages: []parser.Package{ { - Name: "", + Name: "pkg/parallel", Time: 3010, Tests: []*parser.Test{ { @@ -781,6 +781,7 @@ var testCases = []TestCase{ Output: []string{ "Message from first", "Supplemental from first", + "parallel_test.go:14: FirstTest error", }, }, { @@ -789,6 +790,7 @@ var testCases = []TestCase{ Result: parser.FAIL, Output: []string{ "Message from second", + "parallel_test.go:23: SecondTest error", }, }, { @@ -797,6 +799,7 @@ var testCases = []TestCase{ Result: parser.FAIL, Output: []string{ "Message from third", + "parallel_test.go:32: ThirdTest error", }, }, }, diff --git a/tests/20-trio.txt b/tests/20-parallel.txt similarity index 64% rename from tests/20-trio.txt rename to tests/20-parallel.txt index 994723b..cd675fc 100644 --- a/tests/20-trio.txt +++ b/tests/20-parallel.txt @@ -9,5 +9,11 @@ Supplemental from first === RUN ThirdTest Message from third --- FAIL: ThirdTest (0.01s) + parallel_test.go:32: ThirdTest error --- FAIL: FirstTest (2.00s) + parallel_test.go:14: FirstTest error --- FAIL: SecondTest (1.00s) + parallel_test.go:23: SecondTest error +FAIL +exit status 1 +FAIL pkg/parallel 3.010s diff --git a/tests/20-report.xml b/tests/20-report.xml index a3b2e0a..5028851 100644 --- a/tests/20-report.xml +++ b/tests/20-report.xml @@ -1,17 +1,17 @@ - + - - Message from first Supplemental from first + + Message from first Supplemental from first parallel_test.go:14: FirstTest error - - Message from second + + Message from second parallel_test.go:23: SecondTest error - - Message from third + + Message from third parallel_test.go:32: ThirdTest error