This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Calling pending
in a spec marks the spec as failed. #2454
Closed
Description
See the attached testcase
https://gist.github.com/sveneh/9c589d321e6fc31f7460
When I run this in protractor@2.1.0 using jasmine@2.3.1 I get this:
>protractor pending.conf.js
Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
Selenium standalone server started at http://192.168.88.100:60036/wd/hub
Started
F*
Failures:
1) a spec with pending should be pending
Message:
Failed: => marked PendingThis is pending.
Stack:
Error: Failed: => marked PendingThis is pending.
Pending:
1) a spec with pending should be also pending
No reason given
2 specs, 1 failure, 1 pending spec
Finished in 0.006 seconds
Shutting down selenium standalone server.
[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #1 failed 1 test(s)
[launcher] overall: 1 failed spec(s)
[launcher] Process exited with error code 1
running the same spec in pure jasmine@2.3.1:
>jasmine
Started
**
Pending:
1) a spec with pending should be pending
This is pending.
2) a spec with pending should be also pending
No reason given
2 specs, 0 failures, 2 pending specs
Finished in 0.002 seconds
Protractor should not fail specs that are marked as pending.