Skip to content

Commit

Permalink
add id-tests command
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Nov 5, 2023
1 parent 7b78330 commit aaa491b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ build_and_test_all () {
npm run force-build
if [[ "$IS_TRAVIS" == "TRUE" ]]; then
npm run test-base
npm run static-tests
npm run test-base-ws
run_tests
fi
Expand Down Expand Up @@ -155,8 +154,8 @@ if [ ${#REST_EXCHANGES[@]} -eq 0 ] && [ ${#WS_EXCHANGES[@]} -eq 0 ]; then
exit
fi

# run static tests:
npm run static-tests
# run base tests (base js,py,php, brokerId and static-tests)
npm run test-base

# rest_args=${REST_EXCHANGES[*]} || "skip"
rest_args=$(IFS=" " ; echo "${REST_EXCHANGES[*]}") || "skip"
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"fast-test": "npm run commonjs-test && node run-tests --js",
"commonjs-test": "node test-commonjs.cjs",
"fast-test-ws": "node run-tests-ws --js",
"test-js": "npm run commonjs-test && node js/src/test/static/test.ids && node run-tests --js",
"test-js": "npm run commonjs-test && node run-tests --js",
"test-js-ws": "node run-tests-ws --js",
"test-py": "node run-tests --python",
"test-py-ws": "node run-tests-ws --python",
"test-php": "node run-tests --php",
"test-php-ws": "node run-tests-ws --php",
"test-base": "npm run test-js-base && npm run test-python-base && npm run test-php-base",
"test-base": "npm run test-js-base && npm run test-python-base && npm run test-php-base && npm run id-tests && npm run static-tests",
"test-base-ws": "npm run test-js-base-ws && npm run test-python-base-ws && npm run test-php-base-ws",
"test-js-base": "node ./js/src/test/base/test.base.js",
"test-js-base-ws": "npm run test-js-cache && npm run test-js-orderbook",
Expand Down Expand Up @@ -103,7 +103,11 @@
"static-js": "node js/src/test/test.js --static",
"static-py": "python python/ccxt/test/test_async.py --static",
"static-php": "php php/test/test_async.php --static",
"static-tests": "npm run static-js && npm run static-py && npm run static-php"
"static-tests": "npm run static-js && npm run static-py && npm run static-php",
"id-tests-js": "node js/src/test/test.js --idTests",
"id-tests-py": "python python/ccxt/test/test_async.py --idTests",
"id-tests-php": "php php/test/test_async.php --idTests",
"id-tests": "npm run id-tests-js && npm run id-tests-py && npm run id-tests-php"
},
"types": "./js/ccxt.d.ts",
"devDependencies": {
Expand Down

0 comments on commit aaa491b

Please sign in to comment.