codeceptjs / codeceptjs/CodeceptJS
Steps that are running inside Before/After statement are not present in allure report.
- Langage dominant
- JavaScript
- Étoiles
- 4.2k
- Forks
- 757
- Merge moyen
- 2 j 9 h
- PR mergées (30 j)
- 16
Description
#### What are you trying to achieve?
Steps that are running inside Before/After statements are present in allure report.
#### What do you get instead?
Steps that are running inside Before/After statements are **not** present in allure report.
### Details
* CodeceptJS version: 2.5.0
* NodeJS Version: 8-12
### Investigation
The issue is related to how allure plugin is working.
https://github.com/Codeception/CodeceptJS/blob/60f057b0666412e7a9a420e970317b95fd77c5dd/lib/plugin/allure.js#L230-L232
Based on `isHookStep` flag, steps inside Before/After statements are totally ignored when added to allure reports and it seems like this behavior can't be configured over some codecept config or any public API methods.
There are probably some reasons for this kind of limitation for steps inside of a hook statement, so, could you suggest any workaround?
@PeterNgTr, I’d be most grateful for your help
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans lib/plugin/allure.js aux lignes 230-232 et examinez comment l’indicateur isHookStep filtre les étapes du rapport Allure. Reproduisez un scénario Before/After avec CodeceptJS 2.5.0, puis vérifiez que ses étapes sont incluses dans le rapport généré sans perturber les étapes de test ordinaires.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- testing
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100