mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-06 21:48:08 -05:00
Rename tests to testdata
This commit is contained in:
parent
f738270caf
commit
6a7ce5ecd4
@ -811,9 +811,9 @@ var testCases = []TestCase{
|
|||||||
|
|
||||||
func TestParser(t *testing.T) {
|
func TestParser(t *testing.T) {
|
||||||
for _, testCase := range testCases {
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
@ -903,7 +903,7 @@ func testJUnitFormatter(t *testing.T, goVersion string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func loadTestReport(name, goVersion string) (string, error) {
|
func loadTestReport(name, goVersion string) (string, error) {
|
||||||
contents, err := ioutil.ReadFile("tests/" + name)
|
contents, err := ioutil.ReadFile("testdata/" + name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user