Skip to content

Commit

Permalink
Added istanbul & configured for test coverage; #20
Browse files Browse the repository at this point in the history
- bin/setupTestDatabases.sh - Added codeclimate repo token to capture
  lcov information from istanbul

- package.json - added codeclimate-test-reporter and istanbul packages
  to the repo
  • Loading branch information
msnyon committed Jan 30, 2016
1 parent 087ef6f commit cfbbc8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/setupTestDatabases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
cp config/config.json.tmpl config/config.json # Copy template file to template
sed -i -- 's/"_INSERT USERNAME_"/"postgres"/g' config/config.json # change username for db
sed -i -- 's/"_INSERT PASSWORD_"/""/g' config/config.json # change password for db
# Drop and create the test database
if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS drywall-test;' -U postgres; fi
if [ '$DB' = 'pgsql' ]; then psql -c 'create database drywall-test;' -U postgres; fi
cat config/config.json
# set up Codeclimate to be run on the codebase
CODECLIMATE_REPO_TOKEN=d59a2529d82564323b652ad2e84bfc4b477270f97207045fd7cd03d38d50ef22 codeclimate-test-reporter < coverage/lcov.info
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"bootstrap": "^3.x.x",
"chai": "^3.2.0",
"chai-as-promised": "^5.1.0",
"codeclimate-test-reporter": "^0.3.0",
"factory-girl": "^2.2.2",
"factory-girl-sequelize": "^1.0.0",
"faker": "^3.0.1",
Expand All @@ -58,6 +59,7 @@
"grunt-nodemon": "^0.4.x",
"grunt-sequelize-fixtures": "^0.1.0",
"html5shiv": "^3.x.x",
"istanbul": "^0.4.2",
"jquery": "^2.x.x",
"jquery.cookie": "^1.x.x",
"mocha": "^2.3.0",
Expand Down

0 comments on commit cfbbc8e

Please sign in to comment.