MCPcopy Create free account
hub / github.com/docker/compose / TestRunEnvFile

Function TestRunEnvFile

pkg/e2e/env_file_test.go:47–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestRunEnvFile(t *testing.T) {
48 c := NewParallelCLI(t)
49 const projectName = "run-dotenv"
50 defer c.cleanupWithDown(t, projectName)
51
52 res := c.RunDockerComposeCmd(t, "-p", projectName, "--project-directory", "./fixtures/env_file", "run", "--rm", "serviceC", "env")
53 res.Assert(t, icmd.Expected{Out: "FOO=BAR"})
54}

Callers

nothing calls this directly

Calls 3

NewParallelCLIFunction · 0.85
cleanupWithDownMethod · 0.80
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected