rev testdapp scripts -- INIT_CWD compat

This commit is contained in:
Michael Bradley, Jr 2018-09-06 22:43:52 -05:00
parent 2b1bdc6a14
commit 373a67b4a3
4 changed files with 13 additions and 9 deletions

View File

@ -3,11 +3,12 @@
"version": "3.2.0-develop", "version": "3.2.0-develop",
"description": "Embark is a framework that allows you to easily develop and deploy DApps", "description": "Embark is a framework that allows you to easily develop and deploy DApps",
"scripts": { "scripts": {
"lint": "./node_modules/.bin/eslint lib/", "lint": "eslint lib/",
"test": "mocha test/ --no-timeouts --exit", "test": "npm-run-all lint test:*",
"testdapp_1": "cd test_apps/test_app/ && npm install && node ../../bin/embark test", "test:embark": "mocha test/ --no-timeouts --exit",
"testdapp_2": "cd test_apps/contracts_app/ && npm install && node ../../bin/embark test", "test:test_app": "cross-env DAPP=\"test_app\" npm run test_dapp",
"fulltest": "npm run lint && npm run test && npm run testdapp_1 && npm run testdapp_2" "test:contracts_app": "cross-env DAPP=\"contracts_app\" npm run test_dapp",
"test_dapp": "cross-env-shell \"cd test_apps/$DAPP && npm install && npm test\""
}, },
"bin": { "bin": {
"embark": "./bin/embark" "embark": "./bin/embark"

View File

@ -4,7 +4,8 @@
"description": "", "description": "",
"main": "Gruntfile.js", "main": "Gruntfile.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "embark": "node ../../bin/embark",
"test": "npm run embark test"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",

View File

@ -4,8 +4,9 @@
"description": "", "description": "",
"main": "Gruntfile.js", "main": "Gruntfile.js",
"scripts": { "scripts": {
"test": "../../bin/embark test", "coverage": "istanbul report --root .embark --format html",
"coverage": "istanbul report --root .embark --format html" "embark": "node ../../bin/embark",
"test": "npm run embark test"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",

View File

@ -4,7 +4,8 @@
"description": "", "description": "",
"main": "Gruntfile.js", "main": "Gruntfile.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "embark": "node ../../bin/embark",
"test": "npm run embark test"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",