Execute behat whole suite in less then 3 hours

Execute behat whole suite in less then 3 hours

by Rajesh Taneja -
Number of replies: 2

It was pain to run whole behat suite as it was taking long time to finish.

Thanks to Tony and Damyon for starting MDL-39752 and now it's part of moodle smile

FYI: you can use travis to palm off processing power.

https://travis-ci.org/rajeshtaneja/moodle/builds/

 

Average of ratings: Useful (1)
In reply to Rajesh Taneja

Re: Execute behat whole suite in less then 3 hours

by Dan Poltawski -

Hi Raj,

Can you explain a bit more about the travis setup? 

In reply to Dan Poltawski

Re: Execute behat whole suite in less then 3 hours

by Rajesh Taneja -

Sure Dan,

  1. Create account on https://travis-ci.org
  2. Sync your moodle project (from your github account). You can find option to do it under User menu -> Accounts
  3. Update project settings (Go to https://travis-ci.org/{YourAccount}/moodle/builds/ and click settings) and set
    1. "Build only if .travis.yml is present"  to ON
    2. "Build pushes" to ON
  4. Add .travis.yml and behat_timing.json (We are using behat_timing.json to distribute features files in less processes, if you don't want to add this file then increase processes in travis.yml) in your project root and push it on github.
  5. Travis keep looking at your project and when it see .travis.yml it will start behat execution.


.travis.yml & behat_timing.json are attached with this post.