robotsuite is an experiment to wrap Robot Framework tests into Python unittest framework to make it possible to run Robot Framework tests with zope.testrunner's layered test setups:
import unittest2 as unittest
from plone.testing import layered
from robotsuite import RobotTestSuite
from my.app.testing import FUNCTIONAL_TESTING
def test_suite():
suite = unittest.TestSuite()
suite.addTests([
layered(RobotTestSuite('mysuite.txt'),
layer=FUNCTIONAL_TESTING),
])
return suite
This should allow us to run robot test with test isolation and complex test setups (like Plone).
Currently, only single file test suites have been tested. RobotTestSuite splits the test suite into separate unittest test cases so that robot will be run once for every test in the suite.
If this works for you, please contribute at: http://github.com/datakurre/robotsuite/
Product's homepage
Requirements:
· Python
What's New in This Release: [ read full changelog ]
· Allow passing arguments critical/noncritical to only raise an AssertionError if the test is critical [reinhardt]