Hi,
I have been trying to setup User Acceptance tests with the setup instructions given here: https://docs.moodle.org/dev/Running_acceptance_test#Short_version but it keeps throwing the error.
Commands:
>php admin/tool/behat/cli/init.php
Generating autoload files
2.5 behat profile detected, automatically converted to current 3.x format
Acceptance tests environment enabled on http://127.0.0.1/moodle, to run the tests use:
vendor/bin/behat --config /var/bht_moodledata/behatrun/behat/behat.yml
Behat only can run if test mode is enabled. More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
When I run php admin/tool/behat/cli/init.php it clearly says test environment is enabled and it even creates the behat.yml file. But still it's failing.
Here are some behat details from my config.php
$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dataroot = '/var/moodledata';
$CFG->admin = 'admin';
$CFG->behat_wwwroot = 'http://127.0.0.1/moodle';
$CFG->behat_prefix = 'bht_';
$CFG->behat_dataroot_parent = '/var/bht_moodledata/';
$CFG->behat_dataroot = '/var/bht_moodledata/';
Thank you!