allure-framework / allure-framework/allure2

If any TestClass fails at setup @BeforeClass method, Allure is not logging that TestClass entry in Allure report

Open
#1,179 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5.5k
Forks
782
Avg merge
2d 33m
Merged PRs (30d)
16

Description

**Allure not logging setup/teardown failures in @BeforeClass and @AfterClass**
I am running 10 Testclasses, if any TestClass fails in Junit @BeforeClass method , then allure is not logging anything in report for that TestClass and its showing total testclasses run as 9

**Environment:**

| Allure version | 2.10.0 |
| --- | --- |
| Test framework | Junit@4.10 |
| Allure adaptor | allure-junit@2.10.0 |
| Generate report using | allure-maven@2.6 |

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with 10 JUnit 4.10 test classes, including a class whose @BeforeClass or @AfterClass method fails, using the allure-junit 2.10.0 setup. Inspect how these setup and teardown failures are handled, and consider the issue done when the failed class appears in the Allure report and the total class count remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.