unit testing - auto-refresh (gulp+livereload+jasmine) -
i'm trying creat gulp task run test , automatically refresh when changes occur in .js test file.
this code:
gulp.task('watch-test', function() { // start live-reload server plugins.livereload.listen({ start: true}); var filesfortest = [ 'bower_components/angular/angular.js', 'bower_components/angular-mocks/angular-mocks.js', 'src/app/blocks/testcontroller.module.js', 'src/app/blocks/testcontroller.js', 'src/test/spec/sillycontrollerspec.js'] return gulp.src(filesfortest) .pipe(watch(filesfortest)) .pipe(plugins.jasminebrowser.specrunner()) .pipe(plugins.jasminebrowser.server({port: 8888})) .pipe(plugins.livereload()); });
it watches files, have refresh manually page @ browser.
any idea can do?
i found package incluide jasmine + livereload
Comments
Post a Comment