def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered(robottestsuite, layer=COLLECTIVE_CONTACT_MAILACTION_ACCEPTANCE_TESTING), ]) return suite
def test_suite(): suite = unittest.TestSuite() for testfile in os.listdir( os.path.join(os.path.dirname(__file__), "acceptance")): testfilepath = os.path.join("acceptance", testfile) if os.path.isdir(testfilepath): continue if testfile.endswith('.robot'): suite.addTests([ layered(robotsuite.RobotTestSuite( testfilepath, noncritical=['fixme', 'noncritical', 'heisenbug']), layer=OIRA_SUITE_ROBOT), ]) return suite
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for test in robot_tests: suite.addTests([ layered(robotsuite.RobotTestSuite(test), layer=PLONE_FORMWIDGET_MASTERSELECT_ROBOT), ]) return suite
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, "robot") robot_tests = [ os.path.join("robot", doc) for doc in os.listdir(robot_dir) if doc.endswith(".robot") and doc.startswith("test_") ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered(robottestsuite, layer=COLLECTIVE_SYMLINK_ACCEPTANCE_TESTING) ]) return suite
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test, noncritical=['unstable']) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered(robottestsuite, layer=PLONEAPPWIDGETS_DX_ROBOT_TESTING), ]) return suite
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered( robottestsuite, layer=plonetheme.historischmuseumdenbriel_ACCEPTANCE_TESTING ), ]) return suite
def test_suite(): return unittest.TestSuite() # robot tests disabled, not maintained import robotsuite from pyramid_robot.layer import layered suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for test in robot_tests: suite.addTests([ layered(robotsuite.RobotTestSuite(test), layer=ROBOT_LAYER), ]) return suite
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered( robottestsuite, layer=Z3CDATAGRIDFIELD_BEHAVIOREXAMPLES_ACCEPTANCE_TESTING, ), ]) return suite
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.robot') and doc.startswith('test_') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered( robottestsuite, layer=REDTURTLE_EXPORTER_TABLEPAGE_ACCEPTANCE_TESTING, ), ]) return suite
def test_suite(): suite = unittest.TestSuite() suite.addTests([ layered(robotsuite.RobotTestSuite("test_cover.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_layout.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_basic_tile.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_collection_tile.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_embed_tile.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_file_tile.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_image_tile.txt"), layer=FUNCTIONAL_TESTING), layered(robotsuite.RobotTestSuite("test_list_tile.txt"), layer=FUNCTIONAL_TESTING), ]) return suite
def test_suite(): suite = unittest.TestSuite() for testfile in os.listdir( os.path.join(os.path.dirname(__file__), "acceptance")): testfilepath = os.path.join("acceptance", testfile) if os.path.isdir(testfilepath): continue if testfile.endswith('.solr.robot'): # FIXME mixing solr and non-solr layers breaks # skipping library solr tests for now continue if testfile.endswith('.robot'): suite.addTests([ layered(robotsuite.RobotTestSuite( testfilepath, noncritical=['fixme', 'noncritical', 'heisenbug']), layer=PLONEINTRANET_SUITE_ROBOT), ]) return suite
def test_suite(): suite = unittest.TestSuite() no_robot = 'NO_ROBOT' in os.environ.keys() if no_robot or api.env.plone_version() < '4.2': # No robot tests for Plone 4.1.x return suite current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.startswith('test') and doc.endswith('.robot') ] for test in robot_tests: suite.addTests([ layered( robotsuite.RobotTestSuite(test), layer=testing.ROBOT_TESTING, ), ]) return suite
def test_suite(): """Create a test suite for robot tests.""" suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.startswith('test') and doc.endswith('.robot') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests( [ layered( robottestsuite, layer=testing.ACCEPTANCE_TESTING, ), ], ) return suite
def test_suite(): inlineValidationTests = zope.testing.doctest.DocFileSuite( 'inline_validation.txt', package='plone.app.z3cform', optionflags=(zope.testing.doctest.ELLIPSIS | zope.testing.doctest.NORMALIZE_WHITESPACE)) inlineValidationTests.layer = InlineValidationLayer robottestsuite = robotsuite.RobotTestSuite("test_multi.txt") robottestsuite.level = ROBOT_TEST_LEVEL robotTests = layered(robottestsuite, layer=FUNCTIONAL_TESTS) return unittest.TestSuite([ unittest.makeSuite(IntegrationTests), zope.testing.doctest.DocFileSuite( 'wysiwyg/README.txt', package='plone.app.z3cform', setUp=zope.component.testing.setUp, tearDown=zope.component.testing.tearDown, ), zope.testing.doctest.DocFileSuite( 'queryselect/README.txt', package='plone.app.z3cform', setUp=zope.component.testing.setUp, tearDown=zope.component.testing.tearDown, ), zope.testing.doctest.DocTestSuite( 'plone.app.z3cform.wysiwyg.widget', package='plone.app.z3cform', setUp=zope.component.testing.setUp, tearDown=zope.component.testing.tearDown, ), inlineValidationTests, robotTests, ])
def test_suite(): suite = unittest.TestSuite() current_dir = os.path.abspath(os.path.dirname(__file__)) robot_dir = os.path.join(current_dir, 'robot') if IS_PLONE_5: robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.p5.robot') and doc.startswith('test_') ] else: robot_tests = [ os.path.join('robot', doc) for doc in os.listdir(robot_dir) if doc.endswith('.p4.robot') and doc.startswith('test_') ] for robot_test in robot_tests: robottestsuite = robotsuite.RobotTestSuite(robot_test) robottestsuite.level = ROBOT_TEST_LEVEL suite.addTests([ layered( robottestsuite, layer=COLLECTIVE_MESSAGESVIEWLET_ACCEPTANCE_TESTING, ), ]) return suite
def test_suite(): suite = unittest.TestSuite() suite.addTests([ layered( robotsuite.RobotTestSuite("test_autologin_library.robot"), layer=SIMPLE_PUBLICATION_ROBOT_TESTING, ), layered( robotsuite.RobotTestSuite("test_content_library.robot"), layer=SIMPLE_PUBLICATION_ROBOT_TESTING, ), # layered( # robotsuite.RobotTestSuite("test_quickinstaller_library.robot"), # layer=REMOTE_LIBRARY_ROBOT_TESTING, # ), layered( robotsuite.RobotTestSuite("test_i18n_library.robot"), layer=PLONE_ROBOT_TESTING, ), layered( robotsuite.RobotTestSuite("test_users_library.robot"), layer=PLONE_ROBOT_TESTING, ), layered(robotsuite.RobotTestSuite("docs"), layer=PLONE_ROBOT_TESTING), ]) if HAS_SPEAKJS: from plone.app.robotframework.testing import SPEAKJS_ROBOT_TESTING suite.addTests([ layered( robotsuite.RobotTestSuite( "test_speakjs_library.robot", noncritical=['non-critical'], ), layer=SPEAKJS_ROBOT_TESTING, ) ]) return suite
def test_suite(): return layered(robotsuite.RobotTestSuite('robot/base.robot'), layer=CKEDITOR_ROBOT)
def test_suite(): return layered(robotsuite.RobotTestSuite('robot/symptom.robot'), layer=COLLECTIVE_JEKYLL_ROBOT_TESTING)
def test_suite(): return layered(robotsuite.RobotTestSuite('robot/dmsmail.robot'), layer=DMSMAIL_ROBOT_TESTING)
def test_suite(): suite = unittest.TestSuite() suite.addTests([ layered(robotsuite.RobotTestSuite('test_robot.robot'), layer=ROBOT), ]) return suite
def test_suite(): return layered(robotsuite.RobotTestSuite('robot/atfolder.robot', 'robot/collection.robot'), layer=ROBOT_TESTING)
def test_suite(): suite = unittest.TestSuite() suite.addTests([ layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_login.robot")), layer=PLONE_ZSERVER), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_overlays.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_actions_menu.robot")), layer=SIMPLE_PUBLICATION_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_edit.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_portlets.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_history.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_folder_contents.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_reference_browser.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite( os.path.join("cmfplone", "test_livesearch.robot")), layer=AUTOLOGIN_ROBOT_TESTING), layered(robotsuite.RobotTestSuite("test_autologin_library.robot"), layer=SIMPLE_PUBLICATION_ROBOT_TESTING), layered(robotsuite.RobotTestSuite("test_quickinstaller_library.robot"), layer=REMOTE_LIBRARY_ROBOT_TESTING), ]) if HAS_SPEAKJS: from plone.app.robotframework.testing import SPEAKJS_ROBOT_TESTING suite.addTests([ layered(robotsuite.RobotTestSuite("test_speakjs.robot"), layer=SPEAKJS_ROBOT_TESTING), ]) return suite
def test_suite(): suite = unittest.TestSuite() suite.addTests([ layered(robotsuite.RobotTestSuite("acceptance"), layer=PLONE_ZSERVER), ]) return suite
def test_suite(): return layered(robotsuite.RobotTestSuite('robot/views.robot'), layer=PM_TESTING_ROBOT)