gruntjs - How do I get Yeoman to continuously run tests -
when run grunt server, file edits picked , browser refreshed through livereload. when run grunt test, runs once , shuts down.
this behavior can simulated running
yo angular --minsafe mytest grunt test
when change karma.unit.singlerun = false in gruntfile, grunt test says watcher running, no file changes seem trigger running tests again.
how reload capability tests similar way linemanjs works?
you there! there's additional option can set in gruntfile called autowatch
, monitors files specified in karma.conf.js
changes. complete entry in gruntfile
this:
karma: { unit: { configfile: 'karma.conf.js', singlerun: true, autowatch: false }, server: { configfile: 'karma.conf.js', singlerun: false, autowatch: true } }
Comments
Post a Comment