当我运行我的测试时,我得到:
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/