Search code examples
cucumber-jvmgherkin

how to add anchors in scenario documentation in cucumber


how do add a link to a web page as part of my scenario documentation so that, the link is clickable in the generated cucumber report ?

for ex;

Scenario: some text 
  Please refer to maps.google.com .
When blah
Then blah

I expect the report to show me a hyper link to maps.google.com in the scenario documentation.

is this possible ? thanks


Solution

  • Markdown is supported for descriptions, so you can do either:

    <maps.google.com>
    

    Or:

    [Google Maps](http://maps.google.com)