karate icon indicating copy to clipboard operation
karate copied to clipboard

Feature request: Add scenario names to (cucumber html) report when calling feature files

Open ericdriggs opened this issue 1 year ago • 3 comments

Would greatly enhance readability of reports

ericdriggs avatar Oct 03 '22 21:10 ericdriggs

requested by others as well, e.g. https://stackoverflow.com/a/73914451/143475

ptrthomas avatar Oct 03 '22 23:10 ptrthomas

investigated, trickier than expected. since the feature name being called is not usually useful, we need to decide if returning the name of the "first scenario that ran in the called feature" is sufficient. there seems to be some issue in the name in the results today, needs further investigation

ptrthomas avatar Nov 01 '22 10:11 ptrthomas

for anyone interested in this, the recommended way to "call a feature in a loop, with dynamically derived data - but with nicer reporting" is to use a dynamic Scenario Outline as now made possible in 1.3.0 using the new @setup tag: https://github.com/karatelabs/karate/issues/1905

ptrthomas avatar Nov 02 '22 04:11 ptrthomas