Skip to content

Commit

Permalink
Merge pull request #107 from pelias/safely-run-tests
Browse files Browse the repository at this point in the history
chore(test): Use dedicated test script to catch errors
  • Loading branch information
orangejulius authored Sep 13, 2018
2 parents a0faff5 + 29a5159 commit 1e1f722
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bin/units
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# run tests with pipefail to avoid false passes
# see https://github.com/pelias/pelias/issues/744
set -o pipefail

node test/run.js | npx tap-spec
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"units": "node test/run.js | tap-spec",
"units": "./bin/units",
"test": "npm run units",
"travis": "npm test",
"lint": "jshint .",
Expand Down

0 comments on commit 1e1f722

Please sign in to comment.