Skip to content

Commit

Permalink
Merge "node-SDK: add unit tests for chaincode events" into v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
christo4ferris authored and Gerrit Code Review committed Oct 6, 2016
2 parents a80038d + c974285 commit e4a9b47
Show file tree
Hide file tree
Showing 2 changed files with 529 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sdk/node/bin/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ runTests() {
runAssetMgmtTests
runAssetMgmtWithRolesTests
runAssetMgmtWithDynamicRolesTests
runEventTests
echo "End running tests in network mode"
}

Expand Down Expand Up @@ -227,6 +228,18 @@ runAssetMgmtWithDynamicRolesTests() {
echo "END running asset management with dynamic roles tests"
}

runEventTests() {
echo "BEGIN running event-tests ..."
preExample eventsender mycc5
node $UNITTEST/event-tests.js
if [ $? -ne 0 ]; then
echo "ERROR running event-tests!"
NODE_ERR_CODE=1
fi
postExample eventsender
echo "END running event-tests"
}

# start process
# $1 is executable path with any args
# $2 is the log file
Expand Down

0 comments on commit e4a9b47

Please sign in to comment.