-
Notifications
You must be signed in to change notification settings - Fork 36
Allow pending() in tests #32
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
Comments
👍 This is very nice feature when anyone does E2E conditional testing or even if you just want to skip some tests due to some other factors. |
Definitely a need for this. We have E2E tests that conditionally run in different parts of the year as features are turned on and off to meet business need. Right now
|
+1 |
2 similar comments
+1 |
+1 |
I extended the jasmine-spec-reporter (https://www.npmjs.com/package/jasmine-spec-reporter)
Specs marked as pending are displayed as pending in the report if any failedExpectation messages contain the word pending. |
Being able to disable the control flow should also fix this. |
Why is it that this still hasn't been acted on? |
any updates on this issue or just been ignored? |
Short workaround: |
Thanks Kitsula for your response. I did a similar way to have a logic check switching to xit if it meant to be ignored pro grammatically. Instead of duplicating (environment.postDeployment ? xit : it) everywhere, I override it and describe global method. If you have test name including special tags e.g. "#dev #test #uat", then I will check if I ignore the tests intentionally and also remove the tags from the test name. Anyway, it is almost same logic as yours. it works good for me. Thanks, |
I haven't tried it, but it might have been fixed since jasmine 2.9: jasmine/jasmine@f4caf27 |
Can someone explain what's happening here? |
(<If it false - test are run, if not - marked as pending> ? xit : it) |
Any update on this? |
Using Jasmine+Protractor and specs with pending() are marked as failed. Would be really nice to have this working properly.
|
In the current Jasmine version, there's no way to mark a spec as pending if it's already running asynchronously, which is how jasminewd always runs specs (inside their own controlFlow#execute block). Filed a Jasmine feature request at jasmine/jasmine#937 - but I'm aware that this is probably a strange use case for the pending feature.
The text was updated successfully, but these errors were encountered: