diff --git a/.eslintignore b/.eslintignore index 1455e46..4b7618e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ node_modules/ apidoc-out/ coverage/ +integration-test/ diff --git a/.gitignore b/.gitignore index 5ab9253..f7cb051 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ apidoc-out/ coverage/ *.cluster /npm-debug.log +/integration-test/ diff --git a/circle.yml b/circle.yml index afb4b69..1bab038 100644 --- a/circle.yml +++ b/circle.yml @@ -27,6 +27,8 @@ test: - docker run --name=ledger-test-sqlite -it --net=host -e LEDGER_UNIT_DB_URI=sqlite:// -e XUNIT_FILE=coverage/xunit.xml -v $PWD/coverage:/usr/src/app/coverage interledger/five-bells-ledger sh -c 'npm test --coverage -- -R spec-xunit-file' # Extract test results - cp coverage/xunit.xml ${CIRCLE_TEST_REPORTS}/ + # Run integration test suite + - npm run integration # Generate API documentation - npm run apidoc deployment: diff --git a/package.json b/package.json index e9fe341..3df0c56 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "lint": "eslint .", "test": "istanbul test -- _mocha", "coveralls": "cat ./coverage/lcov.info | coveralls", - "apidoc": "apidoc -o apidoc-out -i src/controllers/" + "apidoc": "apidoc -o apidoc-out -i src/controllers/", + "integration": "integration all" }, "engines": { "node": ">=0.12", @@ -72,6 +73,7 @@ "eslint": "^1.2.1", "eslint-config-standard": "^4.1.0", "eslint-plugin-standard": "^1.2.0", + "five-bells-integration-test": "^1.0.0", "istanbul": "0.4.0", "mocha": "~2.3.4", "nock": "^2.10.0",