Browse Source

add unit tests. shhh !

pull/2/head
Nicolas Massé 9 years ago
parent
commit
cf8249acf9
  1. 2
      package.json
  2. 10
      tests/run-unit-tests.sh

2
package.json

@ -4,7 +4,7 @@
"description": "An OpenShift Demo app running on NodeJS",
"main": "server.js",
"scripts": {
"test": "./tests/run-integration-tests.sh"
"test": "./tests/run-unit-tests.sh"
},
"author": "Nicolas MASSE",
"repository": "https://github.com/nmasse-itix/OpenShift-Demo-NodeJS.git",

10
tests/run-unit-tests.sh

@ -0,0 +1,10 @@
#!/bin/bash
# Exit immediately if command returns non-zero status code
set -e
# Currently, it is just a syntax check
node -c server.js
# TODO: do a better job at unit testing :)
Loading…
Cancel
Save