说明业力单元测试时间 [英] Explain karma unit test times

查看:63
本文介绍了说明业力单元测试时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上搜索了两天,但没有发现任何问题.也许我看错了方向-我不知道...

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...

就是这样:运行Karma + Jasmine + phantomJs单元测试时,我的控制台现在几点?

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...

有人吗?

推荐答案

总时间/净时间

  • 净时间=仅测试执行(在浏览器中)
  • 总时间=自Karma注意到文件更改直到打印出最终结果为止的时间(净时间+与浏览器的通讯+在浏览器中加载文件)

请参见 karma/lib/reporters/base .js

这篇关于说明业力单元测试时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆