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

https://www.npmjs.com/package/gulp-jasmine-livereload-task


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -