Grunt测试 - 39mChrome在200000毫秒内没有捕获

时间:2014-05-14 04:00:21

标签: unit-testing tfs gruntjs karma-runner

我正在尝试在TFS构建服务器中运行Grunt Tests。当我手动使用命令提示符运行Grunt测试时,测试成功。但是,当我尝试使用invoke-process步骤运行Grunt测试时,Grunt测试失败,我收到以下错误:

[4mRunning "karma:unit" (karma) task[24m
[32mINFO [launcher]: [39mStarting browser Chrome
[33mWARN [launcher]: [39mChrome have not captured in 200000 ms, killing.
[32mINFO [launcher]: [39mTrying to start Chrome again (1/2).
[33mWARN [launcher]: [39mChrome have not captured in 200000 ms, killing.
[32mINFO [launcher]: [39mTrying to start Chrome again (2/2).
[33mWARN [launcher]: [39mChrome have not captured in 200000 ms, killing.
[31mERROR [launcher]: [39mChrome failed 2 times (timeout). Giving up.
[33mWarning: Task "karma:unit" failed. Use --force to continue.[39m
[31mAborted due to warnings.

Execution Time (2014-05-13 23:25:47 UTC)
karma:unit    600.7s  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100%
Total 602.9s

有谁能告诉我为什么我在这里收到错误?

1 个答案:

答案 0 :(得分:0)

您必须运行TFS Build服务交互模式才能从中启动UI。