PHPUnit testing

PHPUnit testing

by tomasz kowalczyk -
Number of replies: 3

Hi, I'm trying to run moodle PHPUnit tests on GitLab CI server. The thing is it times out after an hour going only about halfway through. I'm very new to unit testing and was wondering how long those tests should normally take, or am I doing it wrong? Thanks

Average of ratings: -
In reply to tomasz kowalczyk

Re: PHPUnit testing

by Rajesh Taneja -

Hello Tomasz,

Unit test time depends on your system performance. On a fast machine with SSD and fast processor it will take around 18 min (pgsql). On a slow machine it might take upto 45 min.

Saying so, mysql is slow because of bug and after  MDL-52060 gets fixed, it should be same as postgres run time.

Hope this helps.