make: unit test flake hunter

For convenient flake hunting.
This commit is contained in:
Elle Mouton 2025-03-06 19:06:02 +02:00 committed by Oliver Gugger
parent 86fc34fb2b
commit ccb1b64f8b
No known key found for this signature in database
GPG key ID: 8E4256593F177720
3 changed files with 36 additions and 0 deletions

View file

@ -198,6 +198,12 @@ unit:
mkdir -p app/build && touch app/build/index.html
$(UNIT)
#? unit-debug: Run unit tests with debug log output enabled
unit-debug:
@$(call print, "Running unit tests.")
mkdir -p app/build && touch app/build/index.html
$(UNIT_DEBUG)
unit-cover: $(GOACC_BIN)
@$(call print, "Running unit coverage tests.")
$(GOACC_BIN) $(COVER_PKG)
@ -308,6 +314,11 @@ sqlc-check: sqlc
@$(call print, "Verifying sql code generation.")
if test -n "$$(git status --porcelain '*.go')"; then echo "SQL models not properly generated!"; git status --porcelain '*.go'; exit 1; fi
#? flakehunter-unit: Run the unit tests continuously until one fails
flakehunter-unit:
@$(call print, "Flake hunting unit test.")
scripts/unit-test-flake-hunter.sh ${pkg} ${case}
# Prevent make from interpreting any of the defined goals as folders or files to
# include in the build process.
.PHONY: default all yarn-install build install go-build go-build-noui \