Makefile: add make apptest command - alias for the make integration-test

The `make apptest` is more natural because integration tests are located in the apptest directory.
This commit is contained in:
Aliaksandr Valialkin
2025-07-25 20:27:27 +02:00
parent 83da33d8cf
commit a092901e26
2 changed files with 4 additions and 2 deletions

View File

@@ -445,7 +445,9 @@ test-full:
test-full-386:
GOEXPERIMENT=synctest GOARCH=386 go test -coverprofile=coverage.txt -covermode=atomic ./lib/... ./app/...
integration-test: victoria-metrics vmagent vmalert vmauth vmctl vmbackup vmrestore
integration-test: apptest
apptest: victoria-metrics vmagent vmalert vmauth vmctl vmbackup vmrestore
go test ./apptest/... -skip="^TestCluster.*"
benchmark:

View File

@@ -33,7 +33,7 @@ For example, `sharding_test.go` aims at testing data sharding.
Since integration tests start applications in a separate process, they require
the application binary files to be built and put into the `bin` directory. The
build rule used for running integration tests, `make integration-test`,
build rule used for running integration tests, `make apptest`,
accounts for that, it builds all application binaries before running the tests.
But if you want to run the tests without `make`, i.e. by executing
`go test ./app/apptest`, you will need to build the binaries first (for example,