Skip to content

Commit

Permalink
Update to qunit-harness v1.x. Bump version (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMoskovkin committed Aug 19, 2016
1 parent 84895d1 commit b15746f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gulp.task('clean', function (cb) {
del('lib', cb);
});

gulp.task('build', ['clean'], function () {
gulp.task('build', ['clean', 'lint'], function () {
return gulp
.src('src/**/*.js')
.pipe(babel())
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-qunit-harness",
"version": "0.1.14",
"version": "1.0.0",
"description": "Gulp plugin for running qunit tests on a local machine and in the SauceLabs environment.",
"homepage": "https://github.com/AlexanderMoskovkin/gulp-qunit-harness",
"bugs": "https://github.com/AlexanderMoskovkin/gulp-qunit-harness/issues",
Expand All @@ -20,7 +20,7 @@
"dependencies": {
"babel-runtime": "^5.8.20",
"promise": "^7.0.4",
"qunit-harness": "^0.3.0",
"qunit-harness": "^1.0.0",
"through2": "^2.0.0"
},
"devDependencies": {
Expand Down
10 changes: 9 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default function (qunitSettings, saucelabsSettings) {
crossDomainPort: qunitSettings.crossDomainPort,
scripts: qunitSettings.scripts || [],
css: qunitSettings.css || [],
configApp: qunitSettings.configApp || null
configApp: qunitSettings.configApp || null,
before: qunitSettings.before,
after: qunitSettings.after
};

var tests = [];
Expand All @@ -41,6 +43,12 @@ export default function (qunitSettings, saucelabsSettings) {
if (typeof qunitSettings.configApp === 'function')
qunitHarness.configApp(qunitSettings.configApp);

if (typeof qunitSettings.before === 'function')
qunitHarness.before(qunitSettings.before);

if (typeof qunitSettings.after === 'function')
qunitHarness.after(qunitSettings.after);

qunitHarness.create();

if (saucelabsSettings) {
Expand Down

0 comments on commit b15746f

Please sign in to comment.