diff --git a/go.mod b/go.mod index 10dcceb..646ab05 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cucumber/godog -go 1.16 +go 1.13 require ( github.com/cucumber/gherkin-go/v19 v19.0.3 diff --git a/run_test.go b/run_test.go index 284af77..b94018b 100644 --- a/run_test.go +++ b/run_test.go @@ -350,7 +350,13 @@ func Test_FormatOutputRun(t *testing.T) { noRandomFlag, []string{featurePath}, ) - file := filepath.Join(t.TempDir(), "result.xml") + dir := filepath.Join(os.TempDir(), t.Name()) + err := os.MkdirAll(dir, 0755) + require.NoError(t, err) + + defer os.RemoveAll(dir) + + file := filepath.Join(dir, "result.xml") actualStatus, actualOutput := testRun(t, fmtOutputScenarioInitializer,