General developer forum

Need help to make travis run my behat tests

 
Picture of Jean-Michel Védrine
Need help to make travis run my behat tests
Core developersParticularly helpful MoodlersPlugin developers

Hello to all,

I have been away from Moodle developent for 2 years. Coming back it's wonderful to see al the new tools for developers.

I tried to add a .travis.yml files to some of my Moodle plugins on my github.

It works quite well except for behat tests.

For instance I only have one behat test for my qformat plugin gift with media files.

See https://github.com/jmvedrine/moodle-qformat_giftmedia/blob/master/tests/behat/import_export.feature

it's quite similar to the one for the core gift plugin https://github.com/moodle/moodle/blob/master/question/format/gift/tests/behat/import_export.feature

my travis file is in fact the dist one

https://github.com/jmvedrine/moodle-qformat_giftmedia/blob/master/.travis.yml

But when I try to run it says that Selenium server is not running

https://travis-ci.org/jmvedrine/moodle-qformat_giftmedia/jobs/322484819

What am I missing ?

Thanks a lot for your help


 
Average of ratings: -
Renaat
Re: Need help to make travis run my behat tests
Core developersParticularly helpful MoodlersPlugin developers
Several people have the same problem (https://github.com/moodlerooms/moodle-plugin-ci/issues). Changing the sudo:false into sudo: required is a good workaround (for the moment). 
 
Average of ratings: -
Picture of Jean-Michel Védrine
Re: Need help to make travis run my behat tests
Core developersParticularly helpful MoodlersPlugin developers

Thanks a lot Renaat, my Behat test is now running and after small adjustments pass !

 
Average of ratings: -