-
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
Distinguish between failed and broken tests when using a 3rd party assertion library with Allure.NUnit and Allure.Xunit #520
Comments
Did you check this page? |
Looks like this code is making a test report broken despite the settings var status = failure.ExceptionTypes.Any(
exceptionType => !exceptionType.StartsWith("Xunit.Sdk.")
) ? Status.broken : Status.failed; |
The same issue with Nunit & FluentAssertions Also, I wonder if there is any workaround to have a "Failed" status instead of "Broken"? |
Any chance there's a timeline for this? |
I'm submitting a ...
What is the current behavior?
The test case failed using fluentassertions or Playwright are shown as broken instead of failed
If the current behavior is a bug, please provide the steps to reproduce and, if possible, a minimal demo of the problem
Create a simple test using FluentAssertions or Playwright dotnet, when you run the tests the resutl is shown as broken
What is the expected behavior?
The test should be failed if I have configured the list of exceptions (failExceptions).
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information
I was taking a look to the AllureNUnitHelper and I was able to see that the IsBroken function is waiting elements in result.Assertions list but when you use FluentAssertions or Playwright this list is not update so the tests are always mark as broken.
The text was updated successfully, but these errors were encountered: