Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Run unit tests in CI with ursa enabled.
Browse files Browse the repository at this point in the history
Signed-off-by: alexander.shcherbakov <alexander.shcherbakov@avast.com>
  • Loading branch information
ashcherbakov committed Jul 11, 2022
1 parent 312c897 commit 971fcc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/check_unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,16 @@ check_exit_code $DOCKER_RM_EXIT_CODE "docker rm AriesMongoDBStorageTest"
check_exit_code $DOCKER_RM_EXIT_CODE "docker rm AriesEDVStorageTest"
}

# Running aries-framework-go unit test
# Running aries-framework-go unit test without ursa
PKGS=$(go list github.com/hyperledger/aries-framework-go/pkg/... 2> /dev/null | grep -v /mocks | grep -v /aries-js-worker)
$GO_TEST_CMD $PKGS -count=1 -race -coverprofile=profile.out -covermode=atomic -timeout=10m
amend_coverage_file

# Running aries-framework-go unit test with ursa
PKGS=$(go list -tags ursa github.com/hyperledger/aries-framework-go/pkg/... 2> /dev/null | grep -v /mocks | grep -v /aries-js-worker)
$GO_TEST_CMD -tags ursa $PKGS -count=1 -race -coverprofile=profile.out -covermode=atomic -timeout=10m
amend_coverage_file

# Running aries-agent-rest unit test
cd cmd/aries-agent-rest
PKGS=$(go list github.com/hyperledger/aries-framework-go/cmd/aries-agent-rest/... 2> /dev/null | grep -v /mocks)
Expand Down

0 comments on commit 971fcc0

Please sign in to comment.