Behat test a depending plugin with Travis CI

Behat test a depending plugin with Travis CI

di Matthias Opitz -
Numero di risposte: 1

I want to behat test a course format I wrote using Travis CI.

The problem hereby is: This course format is a child of another course format I wrote - so when the test tries to access that code it is obviously not present as only the format I have pushed a new commit to will be loaded into the Travis environment.

I could think of two approaches to this:

1. I would need to tell Travis to load the other courser format as well before starting the test. 
or
2. I would use a bespoke version of the Moodle code to test against. 

Is this doable? And if so: how?

Thanks!

Media dei voti: -
In riposta a Matthias Opitz

Re: Behat test a depending plugin with Travis CI

di Davo Smith -
Immagine Core developers Immagine Particularly helpful Moodlers Immagine Peer reviewers Immagine Plugin developers
You can do this with the command:
- moodle-plugin-ci add-plugin githubusername/repositoryname

e.g. from my grade_checklistplugin (which requires mod_checklist to run):
- moodle-plugin-ci add-plugin davosmith/moodle-checklist

https://github.com/davosmith/moodle-grade_checklist/blob/master/.travis.yml#L35