timjroberts / cucumber-js-tsflow

Provides 'specflow' like bindings for Cucumber.js in TypeScript 1.7+.
MIT License
133 stars 34 forks source link

Add a context type for scenario information #121

Closed Fryuni closed 1 year ago

Fryuni commented 1 year ago

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 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',
})