(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestDevbox(t *testing.T) { |
| 26 | t.Setenv("TMPDIR", "/tmp") |
| 27 | testPaths, err := doublestar.FilepathGlob("../../examples/**/devbox.json") |
| 28 | require.NoError(t, err, "Reading testdata/ should not fail") |
| 29 | |
| 30 | assert.Greater(t, len(testPaths), 0, "testdata/ and examples/ should contain at least 1 test") |
| 31 | |
| 32 | for _, testPath := range testPaths { |
| 33 | if !strings.Contains(testPath, "/commands/") { |
| 34 | testShellPlan(t, testPath) |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func testShellPlan(t *testing.T, testPath string) { |
| 40 | baseDir := filepath.Dir(testPath) |
nothing calls this directly
no test coverage detected