(t *testing.T)
| 552 | } |
| 553 | |
| 554 | func TestBuildDependentImage(t *testing.T) { |
| 555 | c := NewParallelCLI(t) |
| 556 | |
| 557 | t.Cleanup(func() { |
| 558 | c.RunDockerComposeCmd(t, "-f", "fixtures/build-test/dependencies/compose.yaml", "down", "--rmi=local") |
| 559 | }) |
| 560 | |
| 561 | res := c.RunDockerComposeCmd(t, "-f", "fixtures/build-test/dependencies/compose.yaml", "build", "firstbuild") |
| 562 | out := res.Combined() |
| 563 | assert.Check(t, strings.Contains(out, "firstbuild Built")) |
| 564 | |
| 565 | res = c.RunDockerComposeCmd(t, "-f", "fixtures/build-test/dependencies/compose.yaml", "build", "secondbuild") |
| 566 | out = res.Combined() |
| 567 | assert.Check(t, strings.Contains(out, "secondbuild Built")) |
| 568 | } |
| 569 | |
| 570 | func TestBuildSubDependencies(t *testing.T) { |
| 571 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected