hrcorval / behavex

BDD test wrapper for parallel test executions and more!
https://github.com/hrcorval/behavex
MIT License
85 stars 20 forks source link

Error while using progress bar on Jenkins #139

Closed livefrommin closed 1 week ago

livefrommin commented 1 week ago

Describe the bug When trying to use argument "--show-progress-bar" it shows the error: Traceback (most recent call last): File "/usr/local/bin/behavex", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/behavex/runner.py", line 72, in main exit_code = run(args) File "/usr/local/lib/python3.10/dist-packages/behavex/runner.py", line 121, in run return launch_behavex() File "/usr/local/lib/python3.10/dist-packages/behavex/runner.py", line 202, in launch_behavex execution_codes, json_reports = launch_by_feature( File "/usr/local/lib/python3.10/dist-packages/behavex/runner.py", line 350, in launch_by_feature global_vars.progress_bar_instance = _get_progress_bar_instance(total_elements=total_features) TypeError: _get_progress_bar_instance() missing 1 required positional argument: 'parallel_scheme'

Command that I'm using: behavex -t $FEATURE_FILES --parallel-processes 16 --parallel-scheme feature --show-progress-bar

Have found the cause of it:

Screenshot 2024-09-03 at 14 55 57

When you run with scheme "scenario", this attribute is going there. Screenshot (2) And if you run with scheme "feature" - it's not used.

hrcorval commented 1 week ago

Hi @livefrommin, you are right. It seems there was a configuration management issue in latest version (and we got a missing commit). Early next week we are releasing a new version with the corresponding fix and multiple other improvements. Thanks for reporting this

hrcorval commented 1 week ago

Hi @livefrommin , the issue has been fixed in recently released library v4.0.2 (https://pypi.org/project/behavex/) Thanks a lot!