hrcorval / behavex

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

Reports are blank when path isn't specified #109

Closed KellyDeveloped closed 4 weeks ago

KellyDeveloped commented 11 months ago

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. The report.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 the output folder and open any of the reports

Expected behavior Running behavex should include all executed features in the report.

Screenshots Running behavex produces this output image

Which in turn produces this HTML report image

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 image

Desktop (please complete the following information):

KPOTOKPblC commented 10 months ago

Hello! I have the same problem. Are there any plans to fix it?

hrcorval commented 9 months ago

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

cosmocracy commented 8 months ago

+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)

cosmocracy commented 8 months ago

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')
hrcorval commented 1 month ago

Fixed in upcoming version. Related branch: https://github.com/hrcorval/behavex/compare/release_3.2.1

Thanks!

hrcorval commented 4 weeks ago

Released in BehaveX v3.2.12