Skip to content

Setup custom failExceptions list within allureConfig.json file, NUnit #2581

Discussion options

You must be logged in to vote

Hello, @alexsavenok-savenduk !

Well, it's a little bit more complicated with NUnit.

The thing is (and we need to document it correctly) that if an unhandled exception has occurred during a test's execution, NUnit doesn't give us the instance of that exception. We only have access to the message and the stack trace, which we can't check against failExceptions. Hence, in Allure NUnit, failExceptions only affects steps and fixtures but not tests.

But NUnit allows us to distinguish failed assertions from unhandled exceptions that aren't assertion-related, and we stick to that distinction to tell apart broken tests from failed ones (and to be honest, that's our go-to in such situations, to kee…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alexsavenok-savenduk
Comment options

@alexsavenok-savenduk
Comment options

Answer selected by alexsavenok-savenduk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants