Skip to content

Commit

Permalink
Clear env vars when running 'make test'
Browse files Browse the repository at this point in the history
Some tests are sensible to DATABRICKS_HOST and DATABRICKS_TOKEN and fail if
they are set.
  • Loading branch information
denik committed Dec 20, 2024
1 parent 2fee243 commit 5cb37d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test: lint testonly

testonly:
@echo "✓ Running tests ..."
@gotestsum --format pkgname-and-test-fails --no-summary=skipped --raw-command go test -v -json -short -coverprofile=coverage.txt ./...
@DATABRICKS_HOST= DATABRICKS_TOKEN= gotestsum --format pkgname-and-test-fails --no-summary=skipped --raw-command go test -v -json -short -coverprofile=coverage.txt ./...

coverage: test
@echo "✓ Opening coverage for unit tests ..."
Expand Down

0 comments on commit 5cb37d0

Please sign in to comment.