-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test report when features are in nested directories #151
Comments
Hi @ansort25, thanks for reporting this. Just to have more feedback on that behavior, would it be feasible to share the report.json file that was generated as part of the execution? If you have any sensitive data, maybe you can obfuscate it. |
@hrcorval this is the content of the report.json: |
Thanks a lot for your quick answer. We see the .JSON file is empty also, like if any of the scenarios crash for any reason. Also, as the HTML report is created based on the .JSON report, it is logically empty. Regards |
I'll try on monday again. I remember executing once or twice in parallel but I don't remember the output. And the code is on the work computer. Have a nice weekend |
could be related: i have a similar setup (nested directories) and im getting a similar issue when I don't pass a features path argument. was meaning to file an issue for this. @ansort25 - can you try passing a features path and see if it helps? |
@hrcorval using both suggested commands the output looks like there are no features or scenarios. (0 features/scenarios passed, 0 failed, 0 skipped) @iamkenos everytime I'm giving the feature path to behavex the output is an error saying: Maybe there's an error in my solution, as this is the first time I'm using playwright and behave! The funny thing is that if I only run |
Hi @ansort25, we released a new version with improvements in the way features/scenarios are being executed as we were experiencing some issues also on our end. Can you please give it a try? As we cannot reproduce the issue above, so maybe this was fixed with the mentioned changes. Thanks! |
Hi! I've tried with the new version and now the issue is different. I'm getting the I've already stopped using Behavex as with the project I'm working on it is not possible to run the tests in parallel (there's a lock on the tab session). I still wanted to use Behavex for the hmtl reporter but I've moved towards other reporters/formatters. Do you think it would be possible to release the html formatter/report as a library on its own? |
Hi! I'm having this issue that I'm trying to understand and solve. I didn't open this as a bug or feature request because I'm not sure it is one of those situations.
So I'm having some features in nested directories under features/ and using the import step workaround offered by behave. My structure is like this:
main_dir/
└── features/
| ├── steps/
| │ ├── init.py
| │ └── import_steps.py
| ├── feature1/
| │ ├── steps/
| │ │ ├── init.py
| │ │ └── feat1.py
| │ └── feat1.feature
| └── environment.py
In this way I can have subfolders under features/ organized based on component.
My issue is with behavex. I'm running
behavex
and it runs giving me this output:1 feature passed, 0 failed, 0 skipped 2 scenarios passed, 0 failed, 0 skipped 9 steps passed, 0 failed, 0 skipped, 0 undefined Took 0m10.208s Exit code: 0
But if I open the html report I don't see the feature.
As you can see in the attached screenshots the feature is not present and in the metrics tab it is shown that 6 steps were executed and passed.
Do you have any input on how to tackle this?
The text was updated successfully, but these errors were encountered: