javascript - Firefox 中的 E2E Protractor 测试显示有 8 个待定规范这是什么意思?

标签 javascript selenium jasmine protractor end-to-end

当我运行我的测试时,我得到:

11 specs, 0 failures, 8 pending specs

Finished in 56.861 seconds

[launcher] 0 instance(s) of WebDriver still running

[launcher] firefox #1 passed.

“8 个待定规范”是什么意思?

最佳答案

这是 coming from your test framework (我假设 jasmine):

Pending specs do not run, but their names will show up in the results as pending.

Any spec declared with xit is marked as pending.

Any spec declared without a function body will also be marked pending in results.

And if you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending.

如果您询问它并且没有故意做任何事情,那么请在您的测试中寻找空的 it() block 。 Jasmine 认为它们“待定”,或者换句话说,“尚未实现”。

仅供引用,相关的 github 问题:

关于javascript - Firefox 中的 E2E Protractor 测试显示有 8 个待定规范这是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30546113/

相关文章:

google-chrome - centos 6.5 上的 chromedriver 无法运行

Python Selenium Firefox - 不安全连接错误警报

CSS 选择器在 Firefox 中有效,但在 IE 中无效

javascript - ESLint : TopBarClass not found in './TopBar' (import/named)

javascript - Nativescript:无法创建应用程序...无法加载模块:...app/main.js

javascript - 如何通过点击触发 "onMouseOut"

javascript - 为什么 setAttribute 在 jQuery 的 attr 不起作用时起作用

javascript - Jasmine 测试中条件语句的使用

javascript - Jasmine expect toThrow 不传也不接

javascript - 将服务模拟到 Controller 中