Beispiel #1
0
 /**
  * Returns the path to the file which specifies if test environment is enabled
  * @return string
  */
 protected static final function get_test_file_path()
 {
     return behat_command::get_behat_dir() . '/test_environment_enabled.txt';
 }
 /**
  * Returns the path to the parallel run file which specifies if parallel test environment is enabled
  * and how many parallel runs to execute.
  *
  * @param int $runprocess run process for which behat dir is returned.
  * @return string
  */
 public static final function get_parallel_test_file_path($runprocess = 0)
 {
     return behat_command::get_behat_dir($runprocess) . '/parallel_environment_enabled.txt';
 }
 /**
  * Returns the behat config file path used by the steps definition list
  *
  * @return string
  */
 public static function get_steps_list_config_filepath()
 {
     global $USER;
     // We don't cygwin-it as it is called using exec() which uses cmd.exe.
     $userdir = behat_command::get_behat_dir() . '/users/' . $USER->id;
     make_writable_directory($userdir);
     return $userdir . '/behat.yml';
 }
 /**
  * Returns the behat config file path used by the steps definition list
  *
  * Note this can only be called from web-based scripts so it will return the
  * production dataroot not behat_dataroot. With this the steps definitions
  * list is accessible without having to install the behat test site.
  *
  * @return string
  */
 public static function get_steps_list_config_filepath()
 {
     global $USER;
     $userdir = behat_command::get_behat_dir() . '/users/' . $USER->id;
     make_writable_directory($userdir);
     return $userdir . '/behat.yml';
 }