Sharing behat scripts?

Sharing behat scripts?

дэргэд Jessica Gramp -
Хариу нийтлэлийн тоо: 2
Moodle HQ зураг 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.

Үнэлгээний дундаж: -
Jessica Gramp-н хариуд

Re: Sharing behat scripts?

дэргэд 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).