mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-03 20:53:04 +02:00
multi: add test coverage for integration tests
This commit is contained in:
@@ -2,7 +2,9 @@ DEV_TAGS = dev
|
||||
RPC_TAGS = autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc
|
||||
LOG_TAGS =
|
||||
TEST_FLAGS =
|
||||
ITEST_FLAGS =
|
||||
ITEST_FLAGS =
|
||||
ITEST_COVERAGE =
|
||||
COLLECT_ITEST_COVERAGE =
|
||||
EXEC_SUFFIX =
|
||||
COVER_PKG = $$(go list -deps -tags="$(DEV_TAGS)" ./... | grep '$(PKG)' | grep -v lnrpc)
|
||||
NUM_ITEST_TRANCHES = 4
|
||||
@@ -77,6 +79,12 @@ ifneq ($(tags),)
|
||||
DEV_TAGS += ${tags}
|
||||
endif
|
||||
|
||||
# Enable integration test coverage (requires Go >= 1.20.0).
|
||||
ifneq ($(cover),)
|
||||
ITEST_COVERAGE = -cover
|
||||
COLLECT_ITEST_COVERAGE = go tool covdata textfmt -i=itest/cover -o coverage.txt
|
||||
endif
|
||||
|
||||
# Define the log tags that will be applied only when running unit tests. If none
|
||||
# are provided, we default to "nolog" which will be silent.
|
||||
ifneq ($(log),)
|
||||
|
Reference in New Issue
Block a user