def test_profile_only(config): profile = config.get_profile("www") suite = Suite.create(paths, profile) assert len(suite.queued) == 1 assert len(suite.skipped) == 14 assert suite.name == "www" result = execute(suite) assert result.success
def test_case_conditional(config): paths = [os.path.join(ROOT_DIR, "conditional.rigor")] suite = Suite.create(paths, config) assert len(suite.skipped) == 0 assert len(suite.queued) == 1 result = execute(suite) assert not result.success # test fails, checking # of steps assert len(result.failed) == 1 scenario_result = result.failed[0].failed[0] assert len(scenario_result.step_results) == 2
def test_suite_create(root): paths = ["."] suite = Suite.create(paths, root, extensions=(), excludes=(), includes=(), concurrency=None) assert suite.extensions == ["rigor"] assert suite.includes == [] assert suite.excludes == ["broken"] assert suite.concurrency == 10
def suite(config): return Suite.create([CONFIG_DIR], config)
def sync_suite(config): return Suite.create(paths, config, excludes=["broken", "profile-only"], concurrency=0)
def suite(config): return Suite.create(paths, config, excludes=["broken", "profile-only"])
def test_asgi(): config = Config.load(paths) suite = Suite.create(paths, config, app=asgi, concurrency=1, retries=0) result = execute(suite) assert result.success