11

I've been searching the web for this for two days and I found nothing. Maybe I'm looking in the wrong way — I don't know...

So here it is: what are the times on my console when running a Karma+Jasmine+phantomJs unit test?

... Executed 1 of 1 SUCCESS (0.878 secs / 0.112 secs)

First, I though that the second time is the total unit test time (for example, when running multiple tasks), however, sometimes the first time gets to be 'bigger', sometimes not...

Anyone?

4

1 回答 1

15

总时间/净时间

  • 净时间 = 仅测试执行(在浏览器中)
  • 总时间 = 从 Karma 注意到文件更改到打印最终结果所用的时间(净时间 + 与浏览器的通信 + 在浏览器中加载文件)

业力/lib/reporters/base.js

于 2016-01-14T04:43:46.883 回答