FriendsOfBehat / SymfonyExtension

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

Load contexts from path #188

Open helyakin opened 2 years ago

helyakin commented 2 years ago

Hello everyone !

Having to specify all files in the Behat config file:

// behat.yml

default:
    suites:
        default:
            contexts:
                - Load\Of\Namespace\Class

Can be very tedious when you have a lot of context files.

Would you be interested in adding something like a contextPaths options

// behat.yml

default:
    suites:
        default:
            contextPaths:
                - tests/Behat/ContextDir

Where we could then fetch all context namespace from ?

Kind of like you do with the phpstan config file.