diff --git a/go-junit-report_test.go b/go-junit-report_test.go index 46582e0..2289907 100644 --- a/go-junit-report_test.go +++ b/go-junit-report_test.go @@ -30,148 +30,148 @@ type TestCase struct { var testCases = []TestCase{ { - name: "01-pass.txt", - reportName: "01-report.xml", + name: "001-pass.txt", + reportName: "001-report.xml", }, { - name: "02-fail.txt", - reportName: "02-report.xml", + name: "002-fail.txt", + reportName: "002-report.xml", }, { - name: "03-skip.txt", - reportName: "03-report.xml", + name: "003-skip.txt", + reportName: "003-report.xml", }, { - name: "04-go_1_4.txt", - reportName: "04-report.xml", + name: "004-go_1_4.txt", + reportName: "004-report.xml", }, { - name: "05-no_xml_header.txt", - reportName: "05-report.xml", + name: "005-no_xml_header.txt", + reportName: "005-report.xml", noXMLHeader: true, }, { - name: "06-mixed.txt", - reportName: "06-report.xml", + name: "006-mixed.txt", + reportName: "006-report.xml", noXMLHeader: true, }, { - name: "07-compiled_test.txt", - reportName: "07-report.xml", + name: "007-compiled_test.txt", + reportName: "007-report.xml", packageName: "test/package", }, { - name: "08-parallel.txt", - reportName: "08-report.xml", + name: "008-parallel.txt", + reportName: "008-report.xml", }, { - name: "09-coverage.txt", - reportName: "09-report.xml", + name: "009-coverage.txt", + reportName: "009-report.xml", }, { - name: "10-multipkg-coverage.txt", - reportName: "10-report.xml", + name: "010-multipkg-coverage.txt", + reportName: "010-report.xml", }, { - name: "11-go_1_5.txt", - reportName: "11-report.xml", + name: "011-go_1_5.txt", + reportName: "011-report.xml", }, { - name: "12-go_1_7.txt", - reportName: "12-report.xml", + name: "012-go_1_7.txt", + reportName: "012-report.xml", }, { - name: "13-syntax-error.txt", - reportName: "13-report.xml", + name: "013-syntax-error.txt", + reportName: "013-report.xml", }, { - name: "14-panic.txt", - reportName: "14-report.xml", + name: "014-panic.txt", + reportName: "014-report.xml", }, { - name: "15-empty.txt", - reportName: "15-report.xml", + name: "015-empty.txt", + reportName: "015-report.xml", }, { - name: "16-repeated-names.txt", - reportName: "16-report.xml", + name: "016-repeated-names.txt", + reportName: "016-report.xml", }, { - name: "17-race.txt", - reportName: "17-report.xml", + name: "017-race.txt", + reportName: "017-report.xml", }, { - name: "18-coverpkg.txt", - reportName: "18-report.xml", + name: "018-coverpkg.txt", + reportName: "018-report.xml", }, { - name: "19-pass.txt", - reportName: "19-report.xml", + name: "019-pass.txt", + reportName: "019-report.xml", }, { - name: "20-parallel.txt", - reportName: "20-report.xml", + name: "020-parallel.txt", + reportName: "020-report.xml", }, { - name: "21-cached.txt", - reportName: "21-report.xml", + name: "021-cached.txt", + reportName: "021-report.xml", }, { - name: "22-bench.txt", - reportName: "22-report.xml", + name: "022-bench.txt", + reportName: "022-report.xml", }, { - name: "23-benchmem.txt", - reportName: "23-report.xml", + name: "023-benchmem.txt", + reportName: "023-report.xml", }, { - name: "24-benchtests.txt", - reportName: "24-report.xml", + name: "024-benchtests.txt", + reportName: "024-report.xml", }, { - name: "25-benchcount.txt", - reportName: "25-report.xml", + name: "025-benchcount.txt", + reportName: "025-report.xml", }, { - name: "26-testbenchmultiple.txt", - reportName: "26-report.xml", + name: "026-testbenchmultiple.txt", + reportName: "026-report.xml", }, { - name: "27-benchdecimal.txt", - reportName: "27-report.xml", + name: "027-benchdecimal.txt", + reportName: "027-report.xml", }, { - name: "28-bench-1cpu.txt", - reportName: "28-report.xml", + name: "028-bench-1cpu.txt", + reportName: "028-report.xml", }, { - name: "29-bench-16cpu.txt", - reportName: "29-report.xml", + name: "029-bench-16cpu.txt", + reportName: "029-report.xml", }, { // generated by running go test on https://gist.github.com/liggitt/09a021ccec988b19917e0c2d60a18ee9 - name: "30-stdout.txt", - reportName: "30-report.xml", + name: "030-stdout.txt", + reportName: "030-report.xml", }, { - name: "31-syntax-error-test-binary.txt", - reportName: "31-report.xml", + name: "031-syntax-error-test-binary.txt", + reportName: "031-report.xml", }, { - name: "32-failed-summary.txt", - reportName: "32-report.xml", + name: "032-failed-summary.txt", + reportName: "032-report.xml", }, { - name: "33-bench-mb.txt", - reportName: "33-report.xml", + name: "033-bench-mb.txt", + reportName: "033-report.xml", }, { - name: "34-notest.txt", - reportName: "34-report.xml", + name: "034-notest.txt", + reportName: "034-report.xml", }, { - name: "35-whitespace.txt", - reportName: "35-report.xml", + name: "035-whitespace.txt", + reportName: "035-report.xml", }, } diff --git a/testdata/01-pass.txt b/testdata/001-pass.txt similarity index 100% rename from testdata/01-pass.txt rename to testdata/001-pass.txt diff --git a/testdata/01-report.xml b/testdata/001-report.xml similarity index 100% rename from testdata/01-report.xml rename to testdata/001-report.xml diff --git a/testdata/02-fail.txt b/testdata/002-fail.txt similarity index 100% rename from testdata/02-fail.txt rename to testdata/002-fail.txt diff --git a/testdata/02-report.xml b/testdata/002-report.xml similarity index 100% rename from testdata/02-report.xml rename to testdata/002-report.xml diff --git a/testdata/03-report.xml b/testdata/003-report.xml similarity index 100% rename from testdata/03-report.xml rename to testdata/003-report.xml diff --git a/testdata/03-skip.txt b/testdata/003-skip.txt similarity index 100% rename from testdata/03-skip.txt rename to testdata/003-skip.txt diff --git a/testdata/04-go_1_4.txt b/testdata/004-go_1_4.txt similarity index 100% rename from testdata/04-go_1_4.txt rename to testdata/004-go_1_4.txt diff --git a/testdata/04-report.xml b/testdata/004-report.xml similarity index 100% rename from testdata/04-report.xml rename to testdata/004-report.xml diff --git a/testdata/05-no_xml_header.txt b/testdata/005-no_xml_header.txt similarity index 100% rename from testdata/05-no_xml_header.txt rename to testdata/005-no_xml_header.txt diff --git a/testdata/05-report.xml b/testdata/005-report.xml similarity index 100% rename from testdata/05-report.xml rename to testdata/005-report.xml diff --git a/testdata/06-mixed.txt b/testdata/006-mixed.txt similarity index 100% rename from testdata/06-mixed.txt rename to testdata/006-mixed.txt diff --git a/testdata/06-report.xml b/testdata/006-report.xml similarity index 100% rename from testdata/06-report.xml rename to testdata/006-report.xml diff --git a/testdata/07-compiled_test.txt b/testdata/007-compiled_test.txt similarity index 100% rename from testdata/07-compiled_test.txt rename to testdata/007-compiled_test.txt diff --git a/testdata/07-report.xml b/testdata/007-report.xml similarity index 100% rename from testdata/07-report.xml rename to testdata/007-report.xml diff --git a/testdata/08-parallel.txt b/testdata/008-parallel.txt similarity index 100% rename from testdata/08-parallel.txt rename to testdata/008-parallel.txt diff --git a/testdata/08-report.xml b/testdata/008-report.xml similarity index 100% rename from testdata/08-report.xml rename to testdata/008-report.xml diff --git a/testdata/09-coverage.txt b/testdata/009-coverage.txt similarity index 100% rename from testdata/09-coverage.txt rename to testdata/009-coverage.txt diff --git a/testdata/09-report.xml b/testdata/009-report.xml similarity index 100% rename from testdata/09-report.xml rename to testdata/009-report.xml diff --git a/testdata/10-multipkg-coverage.txt b/testdata/010-multipkg-coverage.txt similarity index 100% rename from testdata/10-multipkg-coverage.txt rename to testdata/010-multipkg-coverage.txt diff --git a/testdata/10-report.xml b/testdata/010-report.xml similarity index 100% rename from testdata/10-report.xml rename to testdata/010-report.xml diff --git a/testdata/11-go_1_5.txt b/testdata/011-go_1_5.txt similarity index 100% rename from testdata/11-go_1_5.txt rename to testdata/011-go_1_5.txt diff --git a/testdata/11-report.xml b/testdata/011-report.xml similarity index 100% rename from testdata/11-report.xml rename to testdata/011-report.xml diff --git a/testdata/12-go_1_7.txt b/testdata/012-go_1_7.txt similarity index 100% rename from testdata/12-go_1_7.txt rename to testdata/012-go_1_7.txt diff --git a/testdata/12-report.xml b/testdata/012-report.xml similarity index 100% rename from testdata/12-report.xml rename to testdata/012-report.xml diff --git a/testdata/13-report.xml b/testdata/013-report.xml similarity index 100% rename from testdata/13-report.xml rename to testdata/013-report.xml diff --git a/testdata/13-syntax-error.txt b/testdata/013-syntax-error.txt similarity index 100% rename from testdata/13-syntax-error.txt rename to testdata/013-syntax-error.txt diff --git a/testdata/14-panic.txt b/testdata/014-panic.txt similarity index 100% rename from testdata/14-panic.txt rename to testdata/014-panic.txt diff --git a/testdata/14-report.xml b/testdata/014-report.xml similarity index 100% rename from testdata/14-report.xml rename to testdata/014-report.xml diff --git a/testdata/15-empty.txt b/testdata/015-empty.txt similarity index 100% rename from testdata/15-empty.txt rename to testdata/015-empty.txt diff --git a/testdata/15-report.xml b/testdata/015-report.xml similarity index 100% rename from testdata/15-report.xml rename to testdata/015-report.xml diff --git a/testdata/16-repeated-names.txt b/testdata/016-repeated-names.txt similarity index 100% rename from testdata/16-repeated-names.txt rename to testdata/016-repeated-names.txt diff --git a/testdata/16-report.xml b/testdata/016-report.xml similarity index 100% rename from testdata/16-report.xml rename to testdata/016-report.xml diff --git a/testdata/17-race.txt b/testdata/017-race.txt similarity index 100% rename from testdata/17-race.txt rename to testdata/017-race.txt diff --git a/testdata/17-report.xml b/testdata/017-report.xml similarity index 100% rename from testdata/17-report.xml rename to testdata/017-report.xml diff --git a/testdata/18-coverpkg.txt b/testdata/018-coverpkg.txt similarity index 100% rename from testdata/18-coverpkg.txt rename to testdata/018-coverpkg.txt diff --git a/testdata/18-report.xml b/testdata/018-report.xml similarity index 100% rename from testdata/18-report.xml rename to testdata/018-report.xml diff --git a/testdata/19-pass.txt b/testdata/019-pass.txt similarity index 100% rename from testdata/19-pass.txt rename to testdata/019-pass.txt diff --git a/testdata/19-report.xml b/testdata/019-report.xml similarity index 100% rename from testdata/19-report.xml rename to testdata/019-report.xml diff --git a/testdata/20-parallel.txt b/testdata/020-parallel.txt similarity index 100% rename from testdata/20-parallel.txt rename to testdata/020-parallel.txt diff --git a/testdata/20-report.xml b/testdata/020-report.xml similarity index 100% rename from testdata/20-report.xml rename to testdata/020-report.xml diff --git a/testdata/21-cached.txt b/testdata/021-cached.txt similarity index 100% rename from testdata/21-cached.txt rename to testdata/021-cached.txt diff --git a/testdata/21-report.xml b/testdata/021-report.xml similarity index 100% rename from testdata/21-report.xml rename to testdata/021-report.xml diff --git a/testdata/22-bench.txt b/testdata/022-bench.txt similarity index 100% rename from testdata/22-bench.txt rename to testdata/022-bench.txt diff --git a/testdata/22-report.xml b/testdata/022-report.xml similarity index 100% rename from testdata/22-report.xml rename to testdata/022-report.xml diff --git a/testdata/23-benchmem.txt b/testdata/023-benchmem.txt similarity index 100% rename from testdata/23-benchmem.txt rename to testdata/023-benchmem.txt diff --git a/testdata/23-report.xml b/testdata/023-report.xml similarity index 100% rename from testdata/23-report.xml rename to testdata/023-report.xml diff --git a/testdata/24-benchtests.txt b/testdata/024-benchtests.txt similarity index 100% rename from testdata/24-benchtests.txt rename to testdata/024-benchtests.txt diff --git a/testdata/24-report.xml b/testdata/024-report.xml similarity index 100% rename from testdata/24-report.xml rename to testdata/024-report.xml diff --git a/testdata/25-benchcount.txt b/testdata/025-benchcount.txt similarity index 100% rename from testdata/25-benchcount.txt rename to testdata/025-benchcount.txt diff --git a/testdata/25-report.xml b/testdata/025-report.xml similarity index 100% rename from testdata/25-report.xml rename to testdata/025-report.xml diff --git a/testdata/26-report.xml b/testdata/026-report.xml similarity index 100% rename from testdata/26-report.xml rename to testdata/026-report.xml diff --git a/testdata/26-testbenchmultiple.txt b/testdata/026-testbenchmultiple.txt similarity index 100% rename from testdata/26-testbenchmultiple.txt rename to testdata/026-testbenchmultiple.txt diff --git a/testdata/27-benchdecimal.txt b/testdata/027-benchdecimal.txt similarity index 100% rename from testdata/27-benchdecimal.txt rename to testdata/027-benchdecimal.txt diff --git a/testdata/27-report.xml b/testdata/027-report.xml similarity index 100% rename from testdata/27-report.xml rename to testdata/027-report.xml diff --git a/testdata/28-bench-1cpu.txt b/testdata/028-bench-1cpu.txt similarity index 100% rename from testdata/28-bench-1cpu.txt rename to testdata/028-bench-1cpu.txt diff --git a/testdata/28-report.xml b/testdata/028-report.xml similarity index 100% rename from testdata/28-report.xml rename to testdata/028-report.xml diff --git a/testdata/29-bench-16cpu.txt b/testdata/029-bench-16cpu.txt similarity index 100% rename from testdata/29-bench-16cpu.txt rename to testdata/029-bench-16cpu.txt diff --git a/testdata/29-report.xml b/testdata/029-report.xml similarity index 100% rename from testdata/29-report.xml rename to testdata/029-report.xml diff --git a/testdata/30-report.xml b/testdata/030-report.xml similarity index 100% rename from testdata/30-report.xml rename to testdata/030-report.xml diff --git a/testdata/30-stdout.txt b/testdata/030-stdout.txt similarity index 100% rename from testdata/30-stdout.txt rename to testdata/030-stdout.txt diff --git a/testdata/31-report.xml b/testdata/031-report.xml similarity index 100% rename from testdata/31-report.xml rename to testdata/031-report.xml diff --git a/testdata/31-syntax-error-test-binary.txt b/testdata/031-syntax-error-test-binary.txt similarity index 100% rename from testdata/31-syntax-error-test-binary.txt rename to testdata/031-syntax-error-test-binary.txt diff --git a/testdata/32-failed-summary.txt b/testdata/032-failed-summary.txt similarity index 100% rename from testdata/32-failed-summary.txt rename to testdata/032-failed-summary.txt diff --git a/testdata/32-report.xml b/testdata/032-report.xml similarity index 100% rename from testdata/32-report.xml rename to testdata/032-report.xml diff --git a/testdata/33-bench-mb.txt b/testdata/033-bench-mb.txt similarity index 100% rename from testdata/33-bench-mb.txt rename to testdata/033-bench-mb.txt diff --git a/testdata/33-report.xml b/testdata/033-report.xml similarity index 100% rename from testdata/33-report.xml rename to testdata/033-report.xml diff --git a/testdata/34-notest.txt b/testdata/034-notest.txt similarity index 100% rename from testdata/34-notest.txt rename to testdata/034-notest.txt diff --git a/testdata/34-report.xml b/testdata/034-report.xml similarity index 100% rename from testdata/34-report.xml rename to testdata/034-report.xml diff --git a/testdata/35-report.xml b/testdata/035-report.xml similarity index 100% rename from testdata/35-report.xml rename to testdata/035-report.xml diff --git a/testdata/35-whitespace.txt b/testdata/035-whitespace.txt similarity index 100% rename from testdata/35-whitespace.txt rename to testdata/035-whitespace.txt diff --git a/testdata/generate-golden.go b/testdata/generate-golden.go index 5b38736..eda2c64 100644 --- a/testdata/generate-golden.go +++ b/testdata/generate-golden.go @@ -24,9 +24,9 @@ type Settings struct { } var fileSettings = map[string]Settings{ - "05-no_xml_header.txt": {skipXMLHeader: true}, - "06-mixed.txt": {skipXMLHeader: true}, - "07-compiled_test.txt": {packageName: "test/package"}, + "005-no_xml_header.txt": {skipXMLHeader: true}, + "006-mixed.txt": {skipXMLHeader: true}, + "007-compiled_test.txt": {packageName: "test/package"}, } func main() {