Behat configuration manager.
More...
Behat configuration manager.
Creates/updates Behat config files getting tests and steps from Moodle codebase
- Copyright
- 2012 David MonllaĆ³
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ create_parallel_site_links()
static behat_config_manager::create_parallel_site_links |
( |
| $fromrun, |
|
|
| $torun ) |
|
staticfinal |
Create parallel site links.
- Parameters
-
int | $fromrun | first run |
int | $torun | last run. |
- Return values
-
bool | true for sucess, else false. |
◆ drop_parallel_site_links()
static behat_config_manager::drop_parallel_site_links |
( |
| ) |
|
|
staticfinal |
Drops parallel site links.
- Return values
-
bool | true on success else false. |
◆ get_behat_cli_config_filepath()
static behat_config_manager::get_behat_cli_config_filepath |
( |
| $runprocess = 0 | ) |
|
|
static |
Returns the behat config file path used by the behat cli command.
- Parameters
-
int | $runprocess | Runprocess. |
- Return values
-
◆ get_behat_run_config_file_path()
static behat_config_manager::get_behat_run_config_file_path |
( |
| ) |
|
|
staticfinal |
Returns the path to the parallel run file which specifies if parallel test environment is enabled and how many parallel runs to execute.
- Return values
-
◆ get_behat_run_config_value()
static behat_config_manager::get_behat_run_config_value |
( |
| $key | ) |
|
|
staticfinal |
Get config for parallel run.
- Parameters
-
- Return values
-
string|int|array | value which is stored. |
◆ get_steps_list_config_filepath()
static behat_config_manager::get_steps_list_config_filepath |
( |
| ) |
|
|
static |
Returns the behat config file path used by the steps definition list.
- Return values
-
◆ set_behat_run_config_value()
static behat_config_manager::set_behat_run_config_value |
( |
| $key, |
|
|
| $value ) |
|
staticfinal |
Save/update config for parallel run.
- Parameters
-
string | $key | Key to store |
string | int | array | $value | to store. |
◆ update_config_file()
static behat_config_manager::update_config_file |
( |
| $component = '', |
|
|
| $testsrunner = true, |
|
|
| $tags = '', |
|
|
| $themesuitewithallfeatures = false, |
|
|
| $parallelruns = 0, |
|
|
| $run = 0 ) |
|
static |
Updates a config file.
The tests runner and the steps definitions list uses different config files to avoid problems with concurrent executions.
The steps definitions list can be filtered by component so it's behat.yml is different from the $CFG->dirroot one.
- Parameters
-
string | $component | Restricts the obtained steps definitions to the specified component |
string | $testsrunner | If the config file will be used to run tests |
string | $tags | features files including tags. |
bool | $themesuitewithallfeatures | if only theme specific features need to be included in the suite. |
int | $parallelruns | number of parallel runs. |
int | $run | current run for which config needs to be updated. |
- Return values
-
◆ $autoprofileconversion
bool behat_config_manager::$autoprofileconversion = false |
|
static |
Keep track of the automatic profile conversion.
So we can notify user.
The documentation for this class was generated from the following file:
- lib/behat/classes/behat_config_manager.php