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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wuchen90
Copy link

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'

… key

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.:

```yaml
default:
  extensions:
    FriendsOfBehat\SymfonyExtension:
      bootstrap: '%paths.base%/custom/bootstrap.php'
```
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

Successfully merging this pull request may close these issues.

1 participant