Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to specify the file name on the command line #128

Open
ptmkenny opened this issue Feb 17, 2022 · 0 comments
Open

Add a way to specify the file name on the command line #128

ptmkenny opened this issue Feb 17, 2022 · 0 comments

Comments

@ptmkenny
Copy link
Contributor

The output directory can be set on the command line with --out /tmp/my-report-directory. However, the file name is either automatic or set in config.yml:

  extensions:
    emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
      name: html
      renderer: Twig
      # file_name: index
      # If the file name is not set, a timestamp is used.
      print_args: true
      print_outp: true
      loop_break: true

In my setup, I use the same behat.yml to generate multiple reports (I use several behat commands to test several different tags).

However, because I can only specify an output directory on the command line, and not a file name, I have to put each test in a separate directory, which breaks the links to the screenshots. So it would be great if there was a way to specify the name for each report on the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant