【发布时间】:2013-08-24 03:21:02
【问题描述】:
当我运行 grunt server 时,我的文件编辑被拾取并且浏览器通过 livereload 刷新。 当我运行 grunt test 时,它运行一次并关闭。
这种行为可以通过运行来模拟
yo angular --minsafe mytest
grunt test
当我在 Gruntfile 中更改 karma.unit.singlerun = false 时,grunt 测试现在表示正在运行观察程序,但似乎没有文件更改触发再次运行测试。
如何通过类似于 linemanjs 工作方式的测试获得重新加载功能?
【问题讨论】: