Search code examples
phpbehatformatter

behat formatters in version 3


With v3 behat seems to have changed the formatter options in the config yml. There is no formatter section anymore but only a formatters one. What I want is to get rid of the comments in the default output like # FeatureContext::iSetTheParameterTo() because they are 1. black on black by default 2. crash the output if the lines get longer.

Can anyone provide the exact parameters to set in the config or at least a link to the documentation for them?


Solution

  • you need to set paths: false

    I can see that the official documentation does not mention that but you can follow my configuration, it works this way ;-)

    default: formatters: pretty: verbose: true paths: false snippets: true