Logo: Relish

  1. Sign in

Project: relish

Syntax Highlighting

As of Cucumber 1.0.3, you can specify a content type for a docstring, like this:

Given this is made of Ruby code:
  puts "hello"

Relish understands these content types when rendering the step. We use
highlight.js, so the content type string you use needs to match one of their supported languages.

  • @javascript
Push a Scenario with a Ruby DocString
a step with a multiline argument that looks like this:
puts "a string"
# Comment
I view the page for the feature
I should see the text "a string" highlighted as a string
I should see the text "# Comment" highlighted as a comment

Last published about 7 years ago by mattwynne.