allure-framework / allure-framework/allure-java

Ability to rename classes with TestNG

Aperta
#438 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
376
Fork
240
Merge medio
1g 7h
PR unite (30g)
45

Descrizione

#### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia individuando l’integrazione di TestNG e confronta il modo in cui Allure gestisce i nomi di classe personalizzati per JUnit. Definisci in che modo una descrizione a livello di classe o l’equivalente debba influire sul nome della suite, preservando il raggruppamento TestNG esistente, quindi verifica che il report generato utilizzi il nome personalizzato senza il package.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
testing
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.