You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to this changeset, running "make unit-tests"
will execute go tests for all Fabric packages.
This changeset adds the ability to selectively run
go tests for specified packages while still using
the build environment (which is useful to emulate
what is run in CI). To do this, the following
changes were made:
- Added TEST_PKGS environment variable to
unit-tests/run.sh. If not set, you default
to running tests for all packages
- Modified unit-test/docker-compose.yaml to
pass TEST_PKGS into the Docker build env
TEST_PKGS expects a space-delimited list of
qualified Go pkg URLs like you would pass to
the go list command.
To use the new feature, export / set TEST_PKGS
prior to running make unit-tests :
export TEST_PKGS=\
"github.com/hyperledger/fabric/core/comm/... \
github.com/hyperledger/fabric/gossip/..."
make unit-tests
*latest patch uses a shorter syntax in run.sh
Fixes FAB-1455
Change-Id: I5d889f3f25ad3b628c463202939638ba6906d85f
Signed-off-by: Gari Singh <[email protected]>
0 commit comments