MCPcopy Index your code
hub / github.com/jetify-com/devbox / TestExamples

Function TestExamples

testscripts/testscripts_test.go:26–35  ·  view source on GitHub ↗

TestExamples runs testscripts on the devbox-projects in the examples folder.

(t *testing.T)

Source from the content-addressed store, hash-verified

24
25// TestExamples runs testscripts on the devbox-projects in the examples folder.
26func 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.
38func TestScriptsWithProjects(t *testing.T) {

Callers

nothing calls this directly

Calls 1

RunDevboxTestscriptsFunction · 0.92

Tested by

no test coverage detected