Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | List of all members
behat_config_manager Class Reference

Static Public Member Functions

static create_parallel_site_links ($fromrun, $torun)
 Create parallel site links. More...
 
static drop_parallel_site_links ()
 Drops parallel site links. More...
 
static get_behat_cli_config_filepath ($runprocess=0)
 Returns the behat config file path used by the behat cli command. More...
 
static get_behat_run_config_file_path ()
 Returns the path to the parallel run file which specifies if parallel test environment is enabled and how many parallel runs to execute. More...
 
static get_behat_run_config_value ($key)
 Get config for parallel run. More...
 
static get_components_steps_definitions ()
 
static get_features_with_tags ()
 
static get_steps_list_config_filepath ()
 Returns the behat config file path used by the steps definition list. More...
 
static set_behat_run_config_value ($key, $value)
 Save/update config for parallel run. More...
 
static update_config_file ($component='', $testsrunner=true, $tags='', $themesuitewithallfeatures=false, $parallelruns=0, $run=0)
 Updates a config file. More...
 

Static Public Attributes

static bool $autoprofileconversion = false
 Keep track of the automatic profile conversion. More...
 
static behat_config_util $behatconfigutil = null
 keep object of behat_config_util for use.
 

Static Protected Member Functions

static clean_path ()
 
static get_behat_profile ()
 
static get_behat_tests_path ()
 
static get_config_file_contents ()
 
static merge_behat_config ()
 
static merge_config ()
 
static profile_guided_allocate ()
 

Member Function Documentation

◆ clean_path()

static behat_config_manager::clean_path ( )
staticfinalprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ create_parallel_site_links()

static behat_config_manager::create_parallel_site_links (   $fromrun,
  $torun 
)
staticfinal

Create parallel site links.

Parameters
int$fromrunfirst run
int$torunlast run.
Return values
booltrue for sucess, else false.

◆ drop_parallel_site_links()

static behat_config_manager::drop_parallel_site_links ( )
staticfinal

Drops parallel site links.

Return values
booltrue 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$runprocessRunprocess.
Return values
string

◆ get_behat_profile()

static behat_config_manager::get_behat_profile ( )
staticprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ 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
string

◆ get_behat_run_config_value()

static behat_config_manager::get_behat_run_config_value (   $key)
staticfinal

Get config for parallel run.

Parameters
string$keyKey to store
Return values
string|int|arrayvalue which is stored.

◆ get_behat_tests_path()

static behat_config_manager::get_behat_tests_path ( )
staticfinalprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ get_components_steps_definitions()

static behat_config_manager::get_components_steps_definitions ( )
static
Deprecated:
since 3.2 - please use behat_config_util.php

◆ get_config_file_contents()

static behat_config_manager::get_config_file_contents ( )
staticprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ get_features_with_tags()

static behat_config_manager::get_features_with_tags ( )
static
Deprecated:
since 3.2 - please use behat_config_util.php

◆ 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
string

◆ merge_behat_config()

static behat_config_manager::merge_behat_config ( )
staticprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ merge_config()

static behat_config_manager::merge_config ( )
staticprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ profile_guided_allocate()

static behat_config_manager::profile_guided_allocate ( )
staticprotected
Deprecated:
since 3.2 - please use behat_config_util.php

◆ 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$keyKey to store
string | int | array$valueto 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$componentRestricts the obtained steps definitions to the specified component
string$testsrunnerIf the config file will be used to run tests
string$tagsfeatures files including tags.
bool$themesuitewithallfeaturesif only theme specific features need to be included in the suite.
int$parallelrunsnumber of parallel runs.
int$runcurrent run for which config needs to be updated.
Return values
void

Member Data Documentation

◆ $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: