allure-framework / allure-framework/allure2

When @beforeClass fails, output is seen at TestMethod output, not BeforeClass

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

Description

**Is your feature request related to a problem? Please describe.**
Yep, the problem occurs when there is faillure in @beforeClass method.
We expect to have screenshot and logs attached to bookmark beforeMethod. But I have to go to failed test method, and in it find before class, where I'm able to see this output.

**Describe the solution you'd like**
As described above, would like to see outoput of @beforeMethod and etc. when there is failure, directly in item beforeMethod in report. Not in following test method.

**Describe alternatives you've considered**
It's usable as this, but it's confusing.

**Additional context**
Add any other context or screenshots about the feature request here.
![image](https://user-images.githubusercontent.com/28920699/75522413-372b9f80-5a0a-11ea-8218-59825015f7e2.png)

![image](https://user-images.githubusercontent.com/28920699/75522600-a6a18f00-5a0a-11ea-9547-74ea3b9ad71a.png)

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reproducing a failing @beforeClass case and trace how its screenshots and logs are attached in the report; done means those outputs appear directly under the failing lifecycle item rather than under the following test method.

Written by the indexing model from the issue text.

Assessment

Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.