Skip to content

Instantly share code, notes, and snippets.

@sunew
Last active October 2, 2018 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunew/98daf563f0780ba72a76fcf4d997a137 to your computer and use it in GitHub Desktop.
Save sunew/98daf563f0780ba72a76fcf4d997a137 to your computer and use it in GitHub Desktop.
running plone 5.2 robot tests

Working:

This works:

ROBOT_BROWSER=chrome ROBOTSUITE_PREFIX=ONLYROBOT bin/alltests -t ONLYROBOT --all --xml

(opening chrome instances)

for running with no windows opening: https://webmeisterei.com/news/how-to-run-plone-coredev-test-locally-and-quietly

In one terminal:

Xvfb :1

In another:

export DISPLAY=:1
ROBOT_BROWSER=chrome ROBOTSUITE_PREFIX=ONLYROBOT bin/alltests -t ONLYROBOT --all --xml

Runs quitely.

can be run with phantomjs: collective/robotsuite#5

how to run a single robot test?

ROBOT_BROWSER=chrome ROBOTSUITE_PREFIX=ONLYROBOT bin/alltests -t test_thememapper --all

but checks all test groups.

output:

parts/test/robot_log.html parts/test/robot_output.xml parts/test/testreports/Products.CMFPlone.tests.test_robot.RobotTestCase.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment