-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support for ctx.todo() #6212
Comments
I don't really understand where the optional message is reported? |
What I am proposing is that the additional message could appear on the report. Remembering that with BDD the feature files and step definitions are often written before any code and non-developers are often part of that spec development process. At present, with ctx.skip() it says:
What I am suggesting is something like:
or just:
meaning this feature is not yet written, or whatever else the team decides it means. This way, if the client or other non-developers are part of the BDD process they would see these comments in the report. Also, developers have more information about why a test is not executing, rather than just And, of course, if messages were also allowed in skip() devs could say why it was skipped, and others who cannot see the comments in the test implementation would have more information. Thanks, |
Clear and concise description of the problem
I am using vitest-cucumber which is great. An upcoming release will support the Vitest
ctx.skip()
option by passing the ctx into the test (like Vitest does) like this:I know in Vitest this is possible:
test.todo('unimplemented test')
but that can't be done in vitest-cucumber.Suggested solution
I would love the option of
ctx.todo(myMessage)
so I can write all the Gherkin, set the tests to havectx.todo()
then have them work like thetest.todo('unimplemented test')
does, with the addition of an optional custom message.I think this would be of use to non-BDD testers too.
Alternative
No response
Additional context
Anyway, thanks for a great library!
Murray
Validations
The text was updated successfully, but these errors were encountered: