Yeah running behat can take a while, especially if you are running the full Moodle suite.
You can limit the tests you run by targeting for example a specific behat file (or if you use tags specific tags)
For example adding:
--tags="@mod_forum"
would only run tests tagged as part of the forums. We have a specific tag on all of our custom plugins so we can run just those tests.
You can limit the tests you run by targeting for example a specific behat file (or if you use tags specific tags)
For example adding:
--tags="@mod_forum"
would only run tests tagged as part of the forums. We have a specific tag on all of our custom plugins so we can run just those tests.
or
/path/to/moodle/mod/myplugin/tests/behat/testsomething.feature
to target a specific file.
It is possible to do similar things for phpunit as well, I imagine that most of the time when running on our dev systems this is what we want to do..