0
votes

I use Symfony2 BehatBundle, version=v1.0.0 and I want to change the name of the main feature context file. Now when I run the behat using command:

app/console --env=test behat @NameOfMyBundle

file src/NameOfMyBundle/Features/Context/FeatureContext.php is used

I want to use custom main feature file, for example src/NameOfMyBundle/Features/Context/MyCustomContext.php but I don't know how. According to the behat documentation:

By convention, the context class should be called FeatureContext, but this could be easily changed through the cli configuration.

However, this configuration option is nowhere to be found. I tried something like:

app/console --env=test behat @NameOfMyBundle --context "MyCustomContext"

but it fails.

Does anyone know how to change this main feature context file (preferably, using cli)?

Thanks!

1

1 Answers

1
votes