Can I use a separate DB for Behat similar to PHPUnit?

Can I use a separate DB for Behat similar to PHPUnit?

Urs Hunkler -
回帖数:5
Core developers的头像

I try to configure Behat to use a separate DB similar to PHPUnit but Moodle adds the Behat tables to the main Moodel DB.

For PHPUnit I set the extra DB and the tables are set up in that DB:

$CFG->phpunit_dbname = 'moodle_phpu';


For Behat I try without success:

$CFG->behat_dbname = 'moodle_b';


I want to use different DBs because I experience SQL failures when I set up Behat and PHPUnit using one DB and open a MySQL editor to check database tables on a Mac with Mavericks. I quite often need to close the MySQL editor and restart the MySQL server to get rid off the drop outs.

After deleting the Behat and PHPUnit tables in the main Moodle DB I can verify that the issues are gone.

So please tell me how to force Behat to use a separate DB similar to PHPUnit.

Thanks a lot for your help.

回复Urs Hunkler

Re: Can I use a separate DB for Behat similar to PHPUnit?

Urs Hunkler -
Core developers的头像

Anybody? A confirmation that there is no chance would be ok.

回复Urs Hunkler

Re: Can I use a separate DB for Behat similar to PHPUnit?

Damyon Wiese -
I can confirm it doesn't work (sorry).

回复Damyon Wiese

Re: Can I use a separate DB for Behat similar to PHPUnit?

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像

But, it sounds like it might be a sensible option to add, particularly if it makes it more similar to PHPUnit.