Fail if using SKIP_ env vars while running multiple parallel tests #1280
Labels
enhancement
New feature or request
p:needs triage
Needs to be processed by maintainer and issue type / priority added
I recognize this is user error, but I ran into a problem where I accidentally ran multiple parallel tests locally using a SKIP_ environment variable, so all these tests ran against the same Terraform directory and broke each other. You get very weird and concerning error messages like:
This was an easy mistake for me to make because I have tests like
TestFoo
andTestFooBadDeployment
, etc. I wanted to run onlyTestFoo
, so I ranSKIP_teardown=1 go test -v -timeout 60m -run TestFoo
, but of course this ran (effectively)TestFoo*
.Perhaps a lock file could be written inside the
.test-data
directory? Then other parallel tests could try to make the same lock file and fail.The text was updated successfully, but these errors were encountered: