OK, so after some investigation I've solved this
Probably those using this module have more experience with composer/testing that I do so the docs on github skip this point as it is a simple little thing...
The behat extension uses the composer autoloader to bootstrap the files and this can't be configured through the behat.yml file, instead you do it in composer.json autoload section like so:
{
"autoload": {
"classmap": ["mysite/tests/behat/"]
}
}
with the path being the location of the files you want auto-loaded like your FeatureContext.php
I figured it out from looking at composer.json and the test files in the CMS and framework dirs so they've got some good examples.
So now its up in action - its pretty fun to watch selenium run through the tests like magic
Posted to: behat testing setup | Show Thread | Post Reply