allure-framework / allure-framework/allure-python

allure-behave formatter doesn't generate json files if there is an exception in before_feature() method

Ouverte
#326 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug theme:behave
Langage dominant
Python
Étoiles
814
Forks
260
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When I run behave with allure formatter, and there is an exception in before_feature(), json files doesn't created, which means that when I generate allure report, I get no information about tests in that feature

There is sample project in attachment. Run it with `behave -f allure_behave.formatter:AllureFormatter -o output_folder`
[sample_project.zip](https://github.com/allure-framework/allure-python/files/2729380/sample_project.zip)

- Test framework: behave@1.2.6
- Allure adaptor: allure-behave@2.5.4

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start with the attached sample project and run `behave -f allure_behave.formatter:AllureFormatter -o output_folder` using behave 1.2.6 and allure-behave 2.5.4. Inspect the formatter entry point and existing tests for feature setup failures; done means the failing feature produces JSON files containing information when before_feature() raises an exception.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.