diff --git a/internal/worker/find_blender/windows_test.go b/internal/worker/find_blender/windows_test.go index 618cc345..c126573f 100644 --- a/internal/worker/find_blender/windows_test.go +++ b/internal/worker/find_blender/windows_test.go @@ -4,17 +4,24 @@ package find_blender import ( + "flag" "testing" "github.com/stretchr/testify/assert" ) +var withBlender = flag.Bool("withBlender", false, "run test that requires Blender to be installed") + // TestFindBlender is a "weak" test, which actually accepts both happy and unhappy flows. // It would be too fragile to always require a file association to be set up with Blender. func TestFindBlender(t *testing.T) { exe, err := FindBlender() if err != nil { assert.Empty(t, exe) + + if *withBlender { + t.Fatalf("unexpected error: %v", err) + } return } assert.NotEmpty(t, exe)