End-to-End testing
The implemented E2E tests start a local instance of Polybft consensus protocol.
As such, they require the binary 'polygon-edge' to be available in the $PATH variable.
Step 1: Build the polygon-edge
go build -race -o artifacts/polygon-edge . && mv artifacts/polygon-edge $GOPATH/bin
In this case we expect that $GOPATH is set and $GOPATH/bin is defined in $PATH as it is required for a complete Go installation.
Step 2: Run the tests
export E2E_TESTS=TRUE && go test -v ./e2e-polybft/...
To enable logs in the e2e test set E2E_LOGS=true.