-
Notifications
You must be signed in to change notification settings - Fork 65
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
Allure.NUnit: Report exceptions from OneTimeSetUp methods of class fixtures #479
Comments
Unfortunately, can't tell for sure now. Will provide you with more details as soon as I have any. |
For myself I made a hack adding this to my common OneTimeTearDown:
It works for my cases and in any way it just makes Allure reports not 100% green and that's the main thing. |
@gamerka thanks for the suggestion, @delatrie any news on fixes on this ? |
@vladdex Yep, milage may vary. For me right now it works with and without decorators. |
I'm submitting a ...
What is the current behavior?
If a [OneTimeSetUp] method fails, all test results of the class fixture aren't included in the report. The error, therefore, remains unreported.
What is the expected behavior?
If possible, skipped test results should be created. That might be tricky as, at first glance, NUnit doesn't provide the list of scheduled tests (it provides the list of all tests in the class instead; the user might have selected only a subset of them).
An alternative approach would be reporting the error in a surrogate test result. We already do something similar in Allure SpecFlow and Allure Reqnroll.
What is the motivation / use case for changing the behavior?
Include the information about the error that occurred during the run. That information might be important to the user.
The text was updated successfully, but these errors were encountered: