Sharing behat scripts?

Sharing behat scripts?

by Jessica Gramp -
Number of replies: 2
Picture of Moodle HQ Picture of Plugin developers

Hello everyone,

I am just starting to look into using Behat for testing a few things in Moodle and I wondered whether there was a place where people were sharing their test scripts with one another to avoid unnecessary duplication of effort. It seems to me a repository of these scripts would be very useful for the community. 

Forgive me if this is something that already exists, or isn't practical for some reason, as I'm not quite sure how it all works yet, but thought I'd find out if we could all save some time by sharing our work with one another.

Thank you.

Average of ratings: -
In reply to Jessica Gramp

Re: Sharing behat scripts?

by Dan Poltawski -

Hi Jessica,

Are you familiar with the behat scripts which exist in the Moodle source code directories? They are located in tests/behat/ directories, e.g. mod/forum/tests/behat/

Ideally most things which are testing Moodle core features would be integrated into the core tests - which we bundle as part of Moodle. (If you are not from a developer background, this might not be easy to navigate your way around at the moment).

Average of ratings: Useful (1)
In reply to Dan Poltawski

Re: Sharing behat scripts?

by Jessica Gramp -
Picture of Moodle HQ Picture of Plugin developers

Great, thanks Dan. That's good to know. I'll take a look on my local instance.