forceedge01 / behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Works with Goutte and MinkExtension (Selenium2Driver)
MIT License
28 stars 6 forks source link

FailAid complains if behat.yml missing and no config option provided #91

Open tanc opened 1 year ago

tanc commented 1 year ago

What is the issue?

Behat allows for the following config locations:

Behat will look for files named behat.yaml, behat.yml, behat.yaml.dist, behat.yml.dist (in this order). It will first try to find a config file in the root directory of your project, and in config directory second.

FailAid works fine with a behat.yml.dist if --config=behat.yml.dist is used but otherwise complains about a missing behat.yml file.

What should have happened?

It would be nice if all the config options supported by behat were supported by this extension so no changes to CI commands or locally run commands were needed.

tanc commented 1 year ago

This is what Behat does: https://github.com/Behat/Behat/blob/master/src/Behat/Behat/ApplicationFactory.php#L111

forceedge01 commented 1 year ago

Thanks tanc, will look into this.