From f6974b85fa592bc1f519a7c55c44d75bb18387e8 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 4 Jan 2017 15:09:16 +0100 Subject: [PATCH] Adding a helper task to quick run tests in local --- gulpfile.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 13a643f..063dea7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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']); @@ -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); +});