Exemple #1
0
def _add_runtime_info(param_report):
    """
    Add runtime information to parametrized group report.
    :param param_report: parametrized group report
    :return: the parametrized group report with its runtime information
    """
    group_start_time = None
    group_end_time = None
    for testcase in param_report.entries:
        timer = testcase.timer
        start_time = timer["run"].start
        end_time = timer["run"].end
        group_start_time = (
            start_time
            if group_start_time is None
            else min(group_start_time, start_time)
        )
        group_end_time = (
            end_time
            if group_end_time is None
            else max(group_end_time, end_time)
        )
    param_report.timer["run"] = timing.Interval(
        group_start_time, group_end_time
    )
Exemple #2
0
 def make_interval(self, data):  # pylint: disable=no-self-use
     """Create an Interal object."""
     return timing.Interval(**data)
Exemple #3
0
 def make_interval(self, data, **kwargs):
     """Create an Interal object."""
     return timing.Interval(**data)