mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
make: unit test flake hunter
For convenient flake hunting.
This commit is contained in:
parent
86fc34fb2b
commit
ccb1b64f8b
3 changed files with 36 additions and 0 deletions
11
Makefile
11
Makefile
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue