Skip to content

Commit

Permalink
test(integration): build examples in parallel
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Reese <adam@reese.io>
  • Loading branch information
adamreese committed Jun 25, 2024
1 parent dc99abd commit ad77c84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func startSpin(t *testing.T, dir string) *testSpin {
func buildApp(t *testing.T, dir string) {
t.Helper()

t.Log("building application: ", dir)
t.Log("building application:", dir)

cmd := exec.Command(spinBinary, "build")
cmd.Dir = dir
Expand Down Expand Up @@ -151,7 +151,10 @@ func TestBuildExamples(t *testing.T) {
t.Fatal(err)
}
for _, example := range examples {
buildApp(t, filepath.Join("examples", example.Name()))
t.Run(example.Name(), func(t *testing.T) {
t.Parallel()
buildApp(t, filepath.Join("examples", example.Name()))
})
}
}

Expand Down

0 comments on commit ad77c84

Please sign in to comment.