Skip to content

Commit

Permalink
setting the execution start time in runner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalinn committed Aug 23, 2024
1 parent 9257d57 commit c0389d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behavex/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def launch_behavex():
json_reports = []
execution_codes = []
results = None
time_init = global_vars.execution_start_time
config = conf_mgr.get_config()
features_path = os.environ.get('FEATURES_PATH')
parallel_scheme = get_param('parallel_scheme')
Expand Down Expand Up @@ -212,6 +211,7 @@ def launch_behavex():
process_pool = ProcessPoolExecutor(max_workers=parallel_processes,
initializer=init_multiprocessing(),
initargs=(lock,))
global_vars.execution_start_time = time.time()
try:
config = ConfigRun()
if parallel_processes == 1 or get_param('dry_run'):
Expand Down Expand Up @@ -315,7 +315,7 @@ def plural_char(n): return 's' if n != 1 else ''
plural_char(totals['scenarios']['passed']),
totals['scenarios']['failed'],
totals['scenarios']['skipped']))
print('Took: {}'.format(pretty_print_time(time_end - time_init)))
print('Took: {}'.format(pretty_print_time(global_vars.execution_end_time - global_vars.execution_start_time)))
if results and results['features']:
print('\nHTML output report is located at: {}'.format(os.path.join(get_env('OUTPUT'), "report.html")))
print('Exit code: {}'.format(exit_code))
Expand Down

0 comments on commit c0389d0

Please sign in to comment.