Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
ddb0a1b0
Commit
ddb0a1b0
authored
Nov 27, 2013
by
Aaron Barnes
Browse files
MDL-43087 testing: ability to load features from additional paths
parent
9b37cd72
Changes
2
Hide whitespace changes
Inline
Side-by-side
config-dist.php
View file @
ddb0a1b0
...
...
@@ -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
//=========================================================================
...
...
lib/behat/classes/behat_config_manager.php
View file @
ddb0a1b0
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment