Skip to content

Commit

Permalink
Adding a helper task to quick run tests in local
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Jan 10, 2017
1 parent 8d77432 commit f6974b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
var gulp = require('gulp');
var eslint = require('gulp-eslint');
var htmlExtract = require('gulp-html-extract');
var wct = require('web-component-tester').test;

gulp.task('lint', ['lint:js', 'lint:html']);

Expand Down Expand Up @@ -30,3 +31,13 @@ gulp.task('lint:html', function() {
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('test', ['lint'], function(done) {
wct({
plugins: {
local: {
browsers: ['chrome']
}
}
}, done);
});

0 comments on commit f6974b8

Please sign in to comment.