Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cucumber 2 - Formatter API #312
Hello I am writing my own formatter for Cucumber 2.1.0 and I would like to ask if there is possibilily to provide more data and tools for creation of custom formatters. In Cucumber version 1.2.5 was present Reporter and Formatter interfaces, which provided nearly all information. But some of them were not present like fields from @CucumberOptions - dryRun, strict, features, glue, tags.
Why do i need my own formatter? I am sending colleted data after each tested feature to REST API + we are collecting other data like used environment, execution datetime.. .
Event driven Formatter in Cucumber 2.1.0 provide only portion of data and rest of them is accessed via package protected class cucumber.runtime.formatter.TestSourcesModel in Cucumber formatters.
Formatter API will provide more data or some utility class could be present.
Thx for help/answers
The contents of
Why it is not part of the current API at this moment:
Hammering out something to do these linenumber to ast-node lookups would be a good start.