diff --git a/go-junit-report_test.go b/go-junit-report_test.go index 32cb47a..05b1e70 100644 --- a/go-junit-report_test.go +++ b/go-junit-report_test.go @@ -811,9 +811,9 @@ var testCases = []TestCase{ func TestParser(t *testing.T) { for _, testCase := range testCases { - t.Logf("Running: %s", testCase.name) + t.Logf("Test %s", testCase.name) - file, err := os.Open("tests/" + testCase.name) + file, err := os.Open("testdata/" + testCase.name) if err != nil { t.Fatal(err) } @@ -903,7 +903,7 @@ func testJUnitFormatter(t *testing.T, goVersion string) { } func loadTestReport(name, goVersion string) (string, error) { - contents, err := ioutil.ReadFile("tests/" + name) + contents, err := ioutil.ReadFile("testdata/" + name) if err != nil { return "", err } diff --git a/tests/01-pass.txt b/testdata/01-pass.txt similarity index 100% rename from tests/01-pass.txt rename to testdata/01-pass.txt diff --git a/tests/01-report.xml b/testdata/01-report.xml similarity index 100% rename from tests/01-report.xml rename to testdata/01-report.xml diff --git a/tests/02-fail.txt b/testdata/02-fail.txt similarity index 100% rename from tests/02-fail.txt rename to testdata/02-fail.txt diff --git a/tests/02-report.xml b/testdata/02-report.xml similarity index 100% rename from tests/02-report.xml rename to testdata/02-report.xml diff --git a/tests/03-report.xml b/testdata/03-report.xml similarity index 100% rename from tests/03-report.xml rename to testdata/03-report.xml diff --git a/tests/03-skip.txt b/testdata/03-skip.txt similarity index 100% rename from tests/03-skip.txt rename to testdata/03-skip.txt diff --git a/tests/04-go_1_4.txt b/testdata/04-go_1_4.txt similarity index 100% rename from tests/04-go_1_4.txt rename to testdata/04-go_1_4.txt diff --git a/tests/04-report.xml b/testdata/04-report.xml similarity index 100% rename from tests/04-report.xml rename to testdata/04-report.xml diff --git a/tests/05-no_xml_header.txt b/testdata/05-no_xml_header.txt similarity index 100% rename from tests/05-no_xml_header.txt rename to testdata/05-no_xml_header.txt diff --git a/tests/05-report.xml b/testdata/05-report.xml similarity index 100% rename from tests/05-report.xml rename to testdata/05-report.xml diff --git a/tests/06-mixed.txt b/testdata/06-mixed.txt similarity index 100% rename from tests/06-mixed.txt rename to testdata/06-mixed.txt diff --git a/tests/06-report.xml b/testdata/06-report.xml similarity index 100% rename from tests/06-report.xml rename to testdata/06-report.xml diff --git a/tests/07-compiled_test.txt b/testdata/07-compiled_test.txt similarity index 100% rename from tests/07-compiled_test.txt rename to testdata/07-compiled_test.txt diff --git a/tests/07-report.xml b/testdata/07-report.xml similarity index 100% rename from tests/07-report.xml rename to testdata/07-report.xml diff --git a/tests/08-parallel.txt b/testdata/08-parallel.txt similarity index 100% rename from tests/08-parallel.txt rename to testdata/08-parallel.txt diff --git a/tests/08-report.xml b/testdata/08-report.xml similarity index 100% rename from tests/08-report.xml rename to testdata/08-report.xml diff --git a/tests/09-coverage.txt b/testdata/09-coverage.txt similarity index 100% rename from tests/09-coverage.txt rename to testdata/09-coverage.txt diff --git a/tests/09-report.xml b/testdata/09-report.xml similarity index 100% rename from tests/09-report.xml rename to testdata/09-report.xml diff --git a/tests/10-multipkg-coverage.txt b/testdata/10-multipkg-coverage.txt similarity index 100% rename from tests/10-multipkg-coverage.txt rename to testdata/10-multipkg-coverage.txt diff --git a/tests/10-report.xml b/testdata/10-report.xml similarity index 100% rename from tests/10-report.xml rename to testdata/10-report.xml diff --git a/tests/11-go_1_5.txt b/testdata/11-go_1_5.txt similarity index 100% rename from tests/11-go_1_5.txt rename to testdata/11-go_1_5.txt diff --git a/tests/11-report.xml b/testdata/11-report.xml similarity index 100% rename from tests/11-report.xml rename to testdata/11-report.xml diff --git a/tests/12-go_1_7.txt b/testdata/12-go_1_7.txt similarity index 100% rename from tests/12-go_1_7.txt rename to testdata/12-go_1_7.txt diff --git a/tests/12-report.xml b/testdata/12-report.xml similarity index 100% rename from tests/12-report.xml rename to testdata/12-report.xml diff --git a/tests/13-report.xml b/testdata/13-report.xml similarity index 100% rename from tests/13-report.xml rename to testdata/13-report.xml diff --git a/tests/13-syntax-error.txt b/testdata/13-syntax-error.txt similarity index 100% rename from tests/13-syntax-error.txt rename to testdata/13-syntax-error.txt diff --git a/tests/14-panic.txt b/testdata/14-panic.txt similarity index 100% rename from tests/14-panic.txt rename to testdata/14-panic.txt diff --git a/tests/14-report.xml b/testdata/14-report.xml similarity index 100% rename from tests/14-report.xml rename to testdata/14-report.xml diff --git a/tests/15-empty.txt b/testdata/15-empty.txt similarity index 100% rename from tests/15-empty.txt rename to testdata/15-empty.txt diff --git a/tests/15-report.xml b/testdata/15-report.xml similarity index 100% rename from tests/15-report.xml rename to testdata/15-report.xml diff --git a/tests/16-repeated-names.txt b/testdata/16-repeated-names.txt similarity index 100% rename from tests/16-repeated-names.txt rename to testdata/16-repeated-names.txt diff --git a/tests/16-report.xml b/testdata/16-report.xml similarity index 100% rename from tests/16-report.xml rename to testdata/16-report.xml diff --git a/tests/17-race.txt b/testdata/17-race.txt similarity index 100% rename from tests/17-race.txt rename to testdata/17-race.txt diff --git a/tests/17-report.xml b/testdata/17-report.xml similarity index 100% rename from tests/17-report.xml rename to testdata/17-report.xml diff --git a/tests/18-coverpkg.txt b/testdata/18-coverpkg.txt similarity index 100% rename from tests/18-coverpkg.txt rename to testdata/18-coverpkg.txt diff --git a/tests/18-report.xml b/testdata/18-report.xml similarity index 100% rename from tests/18-report.xml rename to testdata/18-report.xml diff --git a/tests/19-pass.txt b/testdata/19-pass.txt similarity index 100% rename from tests/19-pass.txt rename to testdata/19-pass.txt diff --git a/tests/19-report.xml b/testdata/19-report.xml similarity index 100% rename from tests/19-report.xml rename to testdata/19-report.xml diff --git a/tests/20-parallel.txt b/testdata/20-parallel.txt similarity index 100% rename from tests/20-parallel.txt rename to testdata/20-parallel.txt diff --git a/tests/20-report.xml b/testdata/20-report.xml similarity index 100% rename from tests/20-report.xml rename to testdata/20-report.xml