(t *testing.T, testPath string)
| 37 | } |
| 38 | |
| 39 | func testShellPlan(t *testing.T, testPath string) { |
| 40 | baseDir := filepath.Dir(testPath) |
| 41 | testName := fmt.Sprintf("%s_shell_plan", filepath.Base(baseDir)) |
| 42 | t.Run(testName, func(t *testing.T) { |
| 43 | t.Setenv(envir.XDGDataHome, "/tmp/devbox") |
| 44 | assert := assert.New(t) |
| 45 | |
| 46 | _, err := Open(&devopt.Opts{ |
| 47 | Dir: baseDir, |
| 48 | Stderr: os.Stderr, |
| 49 | }) |
| 50 | assert.NoErrorf(err, "%s should be a valid devbox project", baseDir) |
| 51 | }) |
| 52 | } |
| 53 | |
| 54 | type testNix struct { |
| 55 | path string |
no test coverage detected