FriendsOfBehat / SymfonyExtension

:musical_score: Extension integrating Behat with Symfony.
MIT License
472 stars 62 forks source link

fix: allow to use parameter resolution in configuration for bootstrap key #213

Open wuchen90 opened 2 months ago

wuchen90 commented 2 months ago

In PhpStorm, I've got an issue with path resolution for the bootstrap file. I don't know why the path in which Behat runs is always the folder features. So Behat always fails trying to look for /project/root/path/features/config/bootstrap.php.

With this fix, bootstrap file will be resolved based on the base path. Plus, people will be allowed to use the parameter %paths.base% to define a custom bootstrap file path. E.g.:

default:
  extensions:
    FriendsOfBehat\SymfonyExtension:
      bootstrap: '%paths.base%/custom/bootstrap.php'