Page MenuHomePhabricator

Setup script that runs browser tests and on failure posts to Gerrit
Closed, ResolvedPublic


For a given patch write a script that runs the browser tests and then reports to Gerrit on whether they passed.

Event Timeline

Jdlrobson claimed this task.
Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson added subscribers: Jdlrobson, Legoktm, Jhernandez and 2 others.

This script almost does it when run inside tests/browser
Just need to work out how to print the result of the tests in the response..

export BROWSER=phantomjs
bundle install > tmp
msg=$(bundle exec cucumber features/mainmenu.feature)
# Run GerritCommandLine script with score and message
if [ $? -ne 0 ]; then --review -1 --message "$msg"
else --review +1 --message "$msg"

What doesn't work in there? Seems like it should work fine.

Okay this is working now -
It just needs to be automated against every commit that comes in.