FriendsOfBehat / SymfonyExtension

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

Bootstrap absolute path #151

Open bertdk opened 3 years ago

bertdk commented 3 years ago

My feature files are located at /features/user/user.feature and /features/book/book.feature. I want to be able to run all test for a specific folder and for all features. There are 2 options but none that supports both flows due to the bootstrap path configuration.

When I set the path as: bootstrap: '../config/behat/bootstrap.php', I can run all test in a specific folder but not over all features of the project. When I set the path as: bootstrap: '/config/behat/bootstrap.php', I cannot run all test in a specific folder but it works over all features of the project.

I tried to work with a variable path like: bootstrap: '%paths.base%/config/behat/bootstrap.php' but the variable %paths.base% is not parsed.