Behat test a depending plugin with Travis CI

Behat test a depending plugin with Travis CI

Bởi Matthias Opitz -
Số lượng các câu trả lời: 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!

Trung bình điểm đánh giá: -
Để phản hồi tới Matthias Opitz

Re: Behat test a depending plugin with Travis CI

Bởi Davo Smith -
Hình của Core developers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của 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