Along with the provided context types that expose functionalities of the Cucumber World object, we could provide one with information about the scenario. It could contain:
Name of the feature
Name of the scenario
Location of the scenario (file and line)
Tags
Additionally, the tags could be exposed as both tags and smartTags that automatically parses the tags such as:
# Flag tags, which can be checked for presence as a boolean
@foo
@bar
# Arg tags, which can be retrieved as a list of arguments
@mode(A)
@mode(B)
# Property tags, which can be retrieved as an object
@config({
foo: 'bar',
})
Along with the provided context types that expose functionalities of the Cucumber World object, we could provide one with information about the scenario. It could contain:
Additionally, the tags could be exposed as both
tags
andsmartTags
that automatically parses the tags such as: