◆ clean_path()
static behat_config_manager::clean_path |
( |
| ) |
|
|
staticfinalprotected |
◆ 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_profile()
static behat_config_manager::get_behat_profile |
( |
| ) |
|
|
staticprotected |
◆ 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_behat_tests_path()
static behat_config_manager::get_behat_tests_path |
( |
| ) |
|
|
staticfinalprotected |
◆ get_components_steps_definitions()
static behat_config_manager::get_components_steps_definitions |
( |
| ) |
|
|
static |
◆ get_config_file_contents()
static behat_config_manager::get_config_file_contents |
( |
| ) |
|
|
staticprotected |
◆ get_features_with_tags()
static behat_config_manager::get_features_with_tags |
( |
| ) |
|
|
static |
◆ 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
-
◆ merge_behat_config()
static behat_config_manager::merge_behat_config |
( |
| ) |
|
|
staticprotected |
◆ merge_config()
static behat_config_manager::merge_config |
( |
| ) |
|
|
staticprotected |
◆ profile_guided_allocate()
static behat_config_manager::profile_guided_allocate |
( |
| ) |
|
|
staticprotected |
◆ 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: