The Unit tests seem fairly straight forward to get working and reporting, however it would be great to get some advice on how to get Behat tests running especially the @javascript ones.
I am not an expert on the CI aspect of that, but I don't think it is fundamentally different from what it says on https://docs.moodle.org/dev/Acceptance_testing for getting it working on your own computer. (If you have not already done so, getting it working on your own computer would obviously be the best place to start.)
I hope you get a real reply from someone who has actually done this.
I have behat working on my own system
I was trying and failing so far to get it working via Jenkins on my dev PC (but some of my issues with that may just be that it is a windows based system)
Hello Neill,
If you plan to run behat on CI server, then you should look at executing tests headlessly using xvfb.
- Install xvfb
- Run selenium using xvfb
- xvfb-run -a java -jar PATH_TOSELENIUM/selenium-server.jar
- Run behat
Thanks that helped.
xvfb seems good.