mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
Make mocha use test/mocha.opts to DRY up options used by npm test and test/runall.sh and support coffee. Add coffee-script as devDependency to package.json
This commit is contained in:
@@ -2,13 +2,10 @@
|
|||||||
"name": "rippled",
|
"name": "rippled",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Rippled Server",
|
"description": "Rippled Server",
|
||||||
|
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ripple-lib": "0.7.25",
|
"ripple-lib": "0.7.25",
|
||||||
"async": "~0.2.9",
|
"async": "~0.2.9",
|
||||||
@@ -16,17 +13,15 @@
|
|||||||
"simple-jsonrpc": "~0.0.2"
|
"simple-jsonrpc": "~0.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"coffee-script": "~1.6.3",
|
||||||
"mocha": "~1.13.0"
|
"mocha": "~1.13.0"
|
||||||
},
|
},
|
||||||
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --reporter spec --ui tdd --timeout 10000 --slow 600 test/*-test.js"
|
"test": "mocha test/*-test.{js,coffee}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/ripple/rippled.git"
|
"url": "git://github.com/ripple/rippled.git"
|
||||||
},
|
},
|
||||||
|
|
||||||
"readmeFilename": "README.md"
|
"readmeFilename": "README.md"
|
||||||
}
|
}
|
||||||
|
|||||||
1
test/mocha.opts
Normal file
1
test/mocha.opts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--reporter spec --compilers coffee:coffee-script --ui tdd --timeout 10000 --slow 600
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mocha --ui tdd --reporter spec --timeout 10000 test/*-test.js
|
mocha test/*-test.{js,coffee}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user