How to use allure-behave - 5 common examples

To help you get started, we’ve selected a few allure-behave examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github allure-framework / allure-python / allure-behave / src / listener.py View on Github external
def __init__(self, _list=list()):
        super(Context, self).__init__(_list)
        self._stack = [_list]
github allure-framework / allure-python / allure-behave / src / listener.py View on Github external
def __init__(self, behave_config):
        self.behave_config = behave_config
        self.logger = AllureReporter()
        self.current_step_uuid = None
        self.current_scenario_uuid = None
        self.execution_context = Context()
        self.fixture_context = Context()
        self.steps = deque()
github allure-framework / allure-python / allure-behave / src / listener.py View on Github external
def __init__(self, behave_config):
        self.behave_config = behave_config
        self.logger = AllureReporter()
        self.current_step_uuid = None
        self.current_scenario_uuid = None
        self.execution_context = Context()
        self.fixture_context = Context()
        self.steps = deque()
github allure-framework / allure-python / allure-behave / src / formatter.py View on Github external
def __init__(self, stream_opener, config):
        super(AllureFormatter, self).__init__(stream_opener, config)

        self.listener = AllureListener(config)
        file_logger = AllureFileLogger(self.stream_opener.name)

        allure_commons.plugin_manager.register(self.listener)
        allure_commons.plugin_manager.register(file_logger)
github allure-framework / allure-python / allure-behave / src / hooks.py View on Github external
def allure_report(result_dir="allure_results"):
    allure_hooks = AllureHooks(result_dir)
    frame = inspect.currentframe()
    try:
        for hook_name in HOOKS:
            if hook_name in frame.f_back.f_locals:
                frame.f_back.f_locals[hook_name] = wrapper(frame.f_back.f_locals[hook_name],
                                                           getattr(allure_hooks, hook_name))
            else:
                frame.f_back.f_locals[hook_name] = getattr(allure_hooks, hook_name)
    finally:
        del frame

allure-behave

Allure behave integration

Apache-2.0
Latest version published 2 months ago

Package Health Score

91 / 100
Full package analysis

Similar packages