allure-framework / allure-framework/allure-csharp

xUnit.net: Support for [Trait]

Open
#424 0 comments 1 reaction 0 assignees View on GitHub
task:new feature theme:xunit
Dominant language
C#
Stars
125
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
18

Description

#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?
The `[Trait]` attribute isn't shown in the Allure reporter in any way.

#### What is the expected behavior?
Traits are automatically converted according to some algorithm.

#### What is the motivation / use case for changing the behavior?
The `[Trait]` attribute is commonly used to organize tests into groups. IDEs use traits to provide better navigation through tests.

#### Please tell us about your environment:

- Allure version: 2.1.0
- Test framework: testng@6.8
- Allure adaptor: allure-testng@2.0-BETA8
- Generate report using: allure-maven@2.18

#### Other information

The following options should be considered first:

1. Convert all traits to tags.
2. Convert specific traits (e.g., `Category`) to tags.
3. Convert all traits to labels.
4. Convert specific traits to specific labels.
5. Convert specific traits to links.
6. Configure traits to labels/links according to the config.

Contributor guide

Open the contributing guide

Research direction

Start by resolving which of the six proposed conversions applies to xUnit.net [Trait] values, then inspect the Allure reporter entry point responsible for trait metadata. Done means the chosen mapping is implemented and verified in generated reports.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.