You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a really brief Behat project to use as an example with ScenarioEd, and although it runs fine from command line, when I try to load it with ScenarioEd, I get:
Fatal error: Behat\Behat\Extension\ExtensionManager::initializeExtension(): Failed opening required 'Behat\MinkExtension\Extension' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/scenarioed/vendor/behat/behat/src/Behat/Behat/Extension/ExtensionManager.php on line 112
I'm not sure what all you need to know ... the behat.yml looks like:
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
base_url: http://scenarioed.org/
Drupal\DrupalExtension\Extension:
blackbox: ~
And the FeatureContext.php looks like:
use Behat\Behat\Context\ClosuredContextInterface,
Behat\Behat\Context\TranslatedContextInterface,
Behat\Behat\Context\BehatContext,
Behat\Behat\Exception\PendingException;
use Behat\Gherkin\Node\PyStringNode,
Behat\Gherkin\Node\TableNode;
/**
* Features context.
*/
class FeatureContext extends Drupal\DrupalExtension\Context\DrupalContext
{
/**
* Initializes context.
* Every scenario gets it's own context object.
*
* @param array $parameters context parameters (set them up through behat.yml)
*/
public function __construct(array $parameters)
{
// Initialize your context here
}
}
The text was updated successfully, but these errors were encountered:
Because we're using a copy of Behat (within our own composer-based autoload env) to parse and load features, any projects that have configured Behat to load resources we don't have in our autoload environment will fail to load.
Looks like we should remove our dependency upon Behat, and use Gherkin a bit more directly.
Short term solution for now would be to exclude any extension config parameters or feature contexts that try to autoload anything that ScenarioEd doesn't have.
I created a really brief Behat project to use as an example with ScenarioEd, and although it runs fine from command line, when I try to load it with ScenarioEd, I get:
Fatal error: Behat\Behat\Extension\ExtensionManager::initializeExtension(): Failed opening required 'Behat\MinkExtension\Extension' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/scenarioed/vendor/behat/behat/src/Behat/Behat/Extension/ExtensionManager.php on line 112
I'm not sure what all you need to know ... the behat.yml looks like:
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
base_url: http://scenarioed.org/
Drupal\DrupalExtension\Extension:
blackbox: ~
And the FeatureContext.php looks like:
The text was updated successfully, but these errors were encountered: