-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[enhance] inline doc that appears in HTML report #951
Comments
@peterquiel can you see if the else IMO changes to standard Gherkin syntax should be considered carefully. we could possibly introduce a karate keyword called * some.step()
# some comment
* doc 'THIS IS DOCUMENTATION ' + foo
* doc
"""
This is
multi line
"""
* some.step() wdyt |
works when I thought that doc strings in tripple quotes are part of the standard Gherkin syntax .. -> https://cucumber.io/docs/gherkin/reference/#doc-strings Using a karate keyword like Well,.. I would face the same issue with the doc string Gherkin syntax and deciding whether it's a doc string or an assignment would become even more difficult I guess. With that in mind, I prefer the suggestion you made. I just wonder If that could be improved with respect to embed more than just simple text like the What do you think? |
One additional Note. The result of |
@peterquiel ok, I'm also leaning towards a new keyword. will think through also if btw, I've always wanted karate to include api-documentation capabilities - refer #25 and maybe this feature will be a way to make that happen / unified another BTW is that I plan to bake HTML reporting into karate, you may have heard this already in other forums. so this is an opportunity to design it to cater to all these use-cases which brings a serious question - should the content of |
I would like to embed the This leads to general thoughts: A simple example:
What's the meaning of that statement?
And it would be great to have that in the report. Turing the report into a readable spec. I know, this is a simple example and replacing such a "simple" statement with a documents seems too much, but a more complicated match could be replaced in a meaningful way. I don't have an idea how to embed that feature into karate and may be there is no good way to do that, but I thinks it's worth considering it. Furthermore, when you say |
@peterquiel I was thinking of "natively" including cucumber HTML report generation into of course if we decide on asciidoc, we may need to bring in that dependency. I would hope it can be made an optional dependency or maven-shaded if it is not too much totally agree with your example, and that we should be able to pull in any variable. because of the JS engine, I think templating should be very easy. |
rolling into #1281 - most likely will not do markdown or asciidoc for now (can always be added later once we have a foundation). but we will build our own HTML templating approach, there are some interesting ideas in the works, stay tuned ! |
The following Scenario doesn't terminate and executes the request in a loop:
The Scenario works without the documentation string:
I don't know if karate really supports doc string, but I want them to be used in cucumber reports to add some detail information about the usecase aso.
Tested with: 0.9.5.RC3
The text was updated successfully, but these errors were encountered: