-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Definition of Pending #63
Comments
@1-0-1 Can You prepare small spec that reproduces the issue, and can You show current outcome and desired outcome? PS. Are you using "xit" "xdescribe" or "pending();"? |
Yes, this happens when using pending(), they are counted as failures. This is a known Jasmine/Protractor issue. The code snippet above is the going work around for this when searching for a work around to the issue (angular/jasminewd#32). |
@1-0-1 first i thought the workaround above could be used with beautiful reporter but this is not possible because internally the could is wrapped with some "ayncflow polyfills"... I "posted" a solution for the problem by using the BTW: |
Posted the workaround in our readme...the underlying problem should be fixed by jasmine |
Close. The issue is when a message is passed in the pending argument, the string is no longer matching. If you change the comparison to an includes comparison, it works. Thanks for following up with this. results.failedExpectations[0].message.indexOf('Failed: => marked Pending') >= 0 |
When tests are marked pending programmatically in Jasmine, the pending status doesn't get set. They are considered fails but many would like to see them in the Pending list. After searching for solutions to report these the "right" way when run, the best I came up with was extending a jasmine spec reporter to report out to the console that these items should be reported as pending. Can similar logic be applied with this report?
This is a code snippet from this work around. The failedExpectation messages are all prefixed with "Failed: => marked Pending" and then whatever message is supplied by the pending('Pending reason') call.
The text was updated successfully, but these errors were encountered: