TestExamples runs testscripts on the devbox-projects in the examples folder.
(t *testing.T)
| 24 | |
| 25 | // TestExamples runs testscripts on the devbox-projects in the examples folder. |
| 26 | func TestExamples(t *testing.T) { |
| 27 | isOn, err := strconv.ParseBool(os.Getenv(runProjectTests)) |
| 28 | if err != nil || !isOn { |
| 29 | t.Skipf("Skipping TestExamples. To enable, set %s=1.", runProjectTests) |
| 30 | } |
| 31 | |
| 32 | // To run a specific test, say, examples/foo/bar, then run |
| 33 | // go test ./testscripts -run TestExamples/foo_bar_run_test |
| 34 | testrunner.RunDevboxTestscripts(t, "../examples") |
| 35 | } |
| 36 | |
| 37 | // TestScriptsWithProjects runs testscripts on the devbox-projects in the testscripts folder. |
| 38 | func TestScriptsWithProjects(t *testing.T) { |
nothing calls this directly
no test coverage detected