Skip to content

Commit

Permalink
Missing functional tests for minio-js (minio#621)
Browse files Browse the repository at this point in the history
Adding the missing functional tests and changing the test type in
functional_tests from 'it' to 'step'.

Fixes minio#612
  • Loading branch information
kannappanr authored and Krishna Srinivas committed Sep 14, 2017
1 parent 9ac99b1 commit f376efa
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 145 deletions.
12 changes: 12 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ gulp.task('test', ['compile', 'test:compile'], function() {
reporter: 'spec',
ui: 'bdd',
}))
.once('error', () => {
process.exit(1);
})
.once('end', () => {
process.exit();
})
})

gulp.task('lint', function() {
Expand All @@ -69,6 +75,12 @@ gulp.task('functional-test', ['compile'], function() {
reporter: 'spec',
ui: 'bdd',
}))
.once('error', () => {
process.exit(1);
})
.once('end', () => {
process.exit();
})
})
})

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/minio/minio-js#readme",
"dependencies": {
"async": "^1.5.0",
"async": "^1.5.2",
"block-stream2": "^1.0.0",
"concat-stream": "^1.4.8",
"es6-error": "^2.0.2",
Expand All @@ -45,7 +45,7 @@
},
"devDependencies": {
"browserify": "^12.0.1",
"chai": "^3.4.0",
"chai": "^3.5.0",
"eslint": "^4.1.1",
"gulp": "^3.9.0",
"gulp-babel": "^5.2.1",
Expand All @@ -54,9 +54,10 @@
"gulp-notify": "^2.2.0",
"gulp-sourcemaps": "^1.5.2",
"mocha": "^2.3.2",
"mocha-steps": "^1.1.0",
"nock": "^2.12.0",
"rewire": "^2.3.3",
"superagent": "^1.6.1"
"superagent": "^1.8.5"
},
"keywords": [
"api",
Expand Down
Loading

0 comments on commit f376efa

Please sign in to comment.