业力:单位因tmp浏览器错误而失败

时间:2015-04-01 04:58:04

标签: unit-testing gruntjs karma-runner browserify

我遇到了以下问题,而且我是6人团队中唯一遇到此问题的开发人员。

当我运行以下命令时:$ grunt unit(任务:clean:报告install_custom_coverage karma:unit),我收到以下结果:

...
DEBUG [web-server]: serving: C:\Dev\life-web_components\node_modules\karma\static/context.html
PhantomJS 1.9.8 (Windows 7) ERROR
  TEST RUN WAS CANCELLED because this file contains some errors:
    C:/cygwin/tmp/2cfb2e9479b44a59f6d3c57d366bd5b4.browserify


IE 8.0.0 (Windows 7) ERROR
  TEST RUN WAS CANCELLED because this file contains some errors:
    C:/cygwin/tmp/2cfb2e9479b44a59f6d3c57d366bd5b4.browserify

Chrome 41.0.2272 (Windows 7) ERROR
  TEST RUN WAS CANCELLED because this file contains some errors:
    C:/cygwin/tmp/2cfb2e9479b44a59f6d3c57d366bd5b4.browserify



DEBUG [karma]: Run complete, exiting.
DEBUG [launcher]: Disconnecting all browsers
DEBUG [framework.browserify]: cleaning up
DEBUG [launcher]: Process PhantomJS exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\cygwin\tmp\karma-34162292
DEBUG [launcher]: Process Chrome exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\cygwin\tmp\karma-61774528
DEBUG [reporter.junit]: JUnit results written to "C:/Dev/life-web_components/reports/unit_tests.xml".

DEBUG [launcher]: Killed extra IE process 6528
DEBUG [launcher]: Process IE exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\cygwin\tmp\karma-94332604
Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.

我尝试了一系列建议,重新启动CMDER,重新启动计算机,删除node_modules,重新安装全局节点模块,将autoWatch设置为false以及其他各种尝试都没有运气。

由于我是团队中唯一遇到此问题的开发人员,因此它似乎与环境有关。

1 个答案:

答案 0 :(得分:0)

原来我们的repo中需要npm install才能安装它的依赖项。