Skip to content

Commit

Permalink
fixes #78 : Add UnitTests for modules
Browse files Browse the repository at this point in the history
Updating Travis CI YAML file for automatic test instructions and code climate integration
  • Loading branch information
remie committed Sep 18, 2015
1 parent 8bcf71a commit 9af8d85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
language: node_js
node_js:
- "0.12"
- "0.12"
addons:
code_climate:
repo_token: 596103895774c782916a7e4137eb4b2dcd9f59818096d20921adec266a7202b8
after_script:
- codeclimate-test-reporter < ./test/unit-test-coverage/lcov.info
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ gulp.task('testModulesTask', testModulesTask);

gulp.task('clean', ['cleanTask']);
gulp.task('build', ['browserifyAppTask', 'browserifyVendorTask', 'copyStaticTask', 'lessTask']);
gulp.task('test', ['testModulesTask']);
gulp.task('dist', ['build']);

gulp.task('watch', ['dist'], function() {
Expand Down Expand Up @@ -104,7 +105,7 @@ function testModulesTask() {
.pipe(mocha({reporter: 'spec'}))
.pipe(istanbul.writeReports({
dir: './test/unit-test-coverage',
reporters: [ 'html' ],
reporters: [ 'lcov' ],
reportOpts: {
dir: './test/unit-test-coverage'
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"dist": "gulp clean && gulp dist",
"dev": "gulp clean && gulp watch",
"start": "gulp clean && gulp dist && node app.js",
"app": "node app.js"
"app": "node app.js",
"test": "gulp test"
},
"author": "Collabsoft",
"license": "Apache-2.0",
Expand Down

0 comments on commit 9af8d85

Please sign in to comment.