Closed KellyDeveloped closed 4 weeks ago
Hello! I have the same problem. Are there any plans to fix it?
We cannot reproduce the issue above (we will continue trying to find a consistent way to reproduce it). However, we did lot of improvements in version 3.2.0 about feature processing, some maybe that was indirectly fixed. Can you please try with latest Behavex version? Thanks
+1, getting empty reports despite the command-line runner showing successful execution of my feature/scenarios/steps. Almost moved on to another testing framework but found this issue (with the workaround to provide the features
directive on the command-line, which worked like a charm--thank you @KellyDeveloped)
Looks like there's a bug on line 125 of runner.py
....
if os.environ.get('FEATURES_PATH') == '':
os.environ['FEATURES_PATH'] = os.path.join(os.getcwd(), 'features')
Should instead be:
if os.environ.get('FEATURES_PATH') is None or os.environ.get('FEATURES_PATH') == '':
os.environ['FEATURES_PATH'] = os.path.join(os.getcwd(), 'features')
Fixed in upcoming version. Related branch: https://github.com/hrcorval/behavex/compare/release_3.2.1
Thanks!
Released in BehaveX v3.2.12
Describe the bug When running
behavex
without specifying a path, the HTML report generated shows no tests. It looks like the other reports generated don't have information either. Thereport.json
file lists no features.The tests are discovered, run, and show in stdout, but the features/scenario output seems to not be collected for the reports
The same thing happens when you provide a tag to be run.
To Reproduce Steps to reproduce the behavior: From the root of the project, run
behavex
without specifying any paths Open theoutput
folder and open any of the reportsExpected behavior Running
behavex
should include all executed features in the report.Screenshots Running
behavex
produces this outputWhich in turn produces this HTML report
Running
behavex features
producecs the same output, with this additional line:HTML output report is located at: C:\Users\Liam\Documents\behave-playzone\output\report.html
Which looks like this
Desktop (please complete the following information):