Skip to content

Ability to rename classes with TestNG #438

Description

@sokecze

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?

Allure groups suites into sub-suites, which, in case of TestNG, are full class names (with their packages).

What is the expected behavior?

As far as I understand, Allure has an ability to use custom class names with JUnit. In JUnit, classes can be renamed with @DisplayName annotation. In TestNG, there's no such annotation, thus, I'd like to have something like Allure's @Description annotation be applicable to class names. For example,

@Description("Class Name Without Package")
public class TestClass

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

Some projects have very long package names, which are redundant for reports.

Please tell us about your environment:

Allure version 2.8.1
Test framework testng@6.8
Allure integration allure-testng@2.13.2
Generate report using allure-maven@2.10.0

Other information

Screen Shot 2020-04-14 at 11 37 01

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions