-
Notifications
You must be signed in to change notification settings - Fork 253
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
Enhancement to allow to skip a test from the code #565
Comments
Perhaps you can use the |
@roskee unfortunately that marks the tests as failed which is not what I want. I would like something similar, the only difference is that the tests are not marked as failed. I could probably provide a PR for this if required? |
@juliangp maybe you can use |
@longyue0521 We already use this but we need something dynamic in the test, for instance when starting a test, for a given model, the server might return that the model is not deployed on the server, in this case we want to skip the |
@vearutop Thank you! |
@vearutop do you know if there is a new release planned soon that will contain this feature? Thanks in advance. |
Indeed, there were a few nice improvements lately, let's make a new release. |
|
🤔 What's the problem you're trying to solve?
We require the means to skip a test from the code. Here are a couple of examples:
✨ What's your proposed solution?
The proposed solution is to have an error (something like
godog.SkipTest
) that can be returned from the code and that will mark the test/scenario as skipped but not as failed.⛏ Have you considered any alternatives or workarounds?
For now we have a test context where we set a flag and then we have to add code to skip all godog methods if flagged.
This has the disadvantage that the test is not marked as skipped.
📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: