Commit ddb0a1b0 authored by Aaron Barnes's avatar Aaron Barnes
Browse files

MDL-43087 testing: ability to load features from additional paths

parent 9b37cd72
......@@ -661,6 +661,11 @@ $CFG->admin = 'admin';
// Example:
// $CFG->behat_extraallowedsettings = array('logsql', 'dblogerror');
//
// Including feature files from directories outside the dirroot is possible if required. The setting
// requires that the running user has executable permissions on all parent directories in the paths.
// Example:
// $CFG->behat_additionalfeatures = array('/home/developer/code/wipfeatures');
//
//=========================================================================
// 12. DEVELOPER DATA GENERATOR
//=========================================================================
......
......@@ -82,6 +82,11 @@ class behat_config_manager {
$features = array_values($featurespaths);
}
// Optionally include features from additional directories.
if (!empty($CFG->behat_additionalfeatures)) {
$features = array_merge($features, array_map("realpath", $CFG->behat_additionalfeatures));
}
// Gets all the components with steps definitions.
$stepsdefinitions = array();
$steps = self::get_components_steps_definitions();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment