Skip to content
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 matches 2 error categories and duplicates failure for both of them #499

Open
1 of 3 tasks
DenisKorbovskyTds opened this issue May 9, 2024 · 0 comments
Open
1 of 3 tasks

Comments

@DenisKorbovskyTds
Copy link

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

1 failed test case displayed as 2 failed on categories tab (gets duplicated with 2 categories if both of them match). Documentation says (https://allurereport.org/docs/categories/)

The test gets assigned the first matching category

If the current behavior is a bug, please provide the steps to reproduce and, if possible, a minimal demo of the problem

image
  1. Create 2 categories when 2nd should not continue to match if 1st is matched
    { "name": "Product defects", "messageRegex": "System\\.Reflection\\.TargetInvocationException : Exception has been thrown by the target of an invocation\\.\n ----> Altom\\.AltDriver\\.WaitTimeOutException" }, { "name": "Test defects", "messageRegex": "System.*" }
  2. Failure with such stacktrace matches 2 categories
    System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> Altom.AltDriver.WaitTimeOutException : Element //Title_Ovser not loaded after 20 seconds

What is the expected behavior?

Categories tab should display 1 error with category "Product defects"

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • OS Linux/Windows/Mac OS
  • .NET framework .NET 8
  • Allure version: 2.27.0
  • Test framework: nunit@3.13.3
  • Allure adapter: allure-nunit@2.11.0

Other information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant