Open sebastianpfischer opened 1 year ago
Hi, @sebastianpfischer! Thanks for the issue. Session scoped fixtures aren't implemented in allure-behave. Once they are, attachments from before_all/after_all will go there. Can't tell you the date estimate for this though, sorry.
[//]: # ( . Note: for support questions, please use Stackoverflow or Gitter. . This repository's issues are reserved for feature requests and bug reports. . . In case of any problems with Allure Jenkins plugin please use the following repository . to create an issue: https://github.com/jenkinsci/allure-plugin/issues . . Make sure you have a clear name for your issue. The name should start with a capital . letter and no dot is required in the end of the sentence. An example of good issue names: . . - The report is broken in IE11 . - Add an ability to disable default plugins . - Support emoji in test descriptions )
I'm submitting a ...
What is the current behavior?
printed error: HOOK-ERROR in after_all: KeyError: None
Actual error raised:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
in
environment.py
:It seems like the problem comes from https://github.com/allure-framework/allure-python/blob/master/allure-python-commons/src/reporter.py#L72. All tests where executed and the list contains only elements of type
TestResultContainer
and not of typeExecutableItem
which lead the method to return aNone
.The
None
is propagated cross the framework which lead to aKeyError
.What is the expected behavior?
The log to be attached and no error printed.
What is the motivation / use case for changing the behavior?
We want to attach the logs to the allure reports after all features where called.
Please tell us about your environment:
Other information
[//]: # ( . e.g. detailed explanation, stacktraces, related issues, suggestions . how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc )