From 4aa31fc44046f463d58e24ac13907f81d55ed2df Mon Sep 17 00:00:00 2001 From: Tachikoma Date: Mon, 22 Dec 2014 20:38:28 +0800 Subject: [PATCH] add test for go 1.4 support --- go-junit-report_test.go | 26 ++++++++++++++++++++++++++ tests/04-go_1_4.txt | 6 ++++++ tests/04-report.xml | 8 ++++++++ 3 files changed, 40 insertions(+) create mode 100644 tests/04-go_1_4.txt create mode 100644 tests/04-report.xml diff --git a/go-junit-report_test.go b/go-junit-report_test.go index 471e833..853d614 100644 --- a/go-junit-report_test.go +++ b/go-junit-report_test.go @@ -102,6 +102,32 @@ var testCases []TestCase = []TestCase{ }, }, }, + { + name: "04-go_1_4.txt", + reportName: "04-report.xml", + report: &Report{ + Packages: []Package{ + { + Name: "package/name", + Time: 160, + Tests: []Test{ + { + Name: "TestOne", + Time: 60, + Result: PASS, + Output: []string{}, + }, + { + Name: "TestTwo", + Time: 100, + Result: PASS, + Output: []string{}, + }, + }, + }, + }, + }, + }, } func TestParser(t *testing.T) { diff --git a/tests/04-go_1_4.txt b/tests/04-go_1_4.txt new file mode 100644 index 0000000..13fe892 --- /dev/null +++ b/tests/04-go_1_4.txt @@ -0,0 +1,6 @@ +=== RUN TestOne +--- PASS: TestOne (0.06s) +=== RUN TestTwo +--- PASS: TestTwo (0.10s) +PASS +ok package/name 0.160s \ No newline at end of file diff --git a/tests/04-report.xml b/tests/04-report.xml new file mode 100644 index 0000000..2585b80 --- /dev/null +++ b/tests/04-report.xml @@ -0,0 +1,8 @@ + + + + + + + +