allure-framework / allure-framework/allure2
Use last found Owner annotation
- Dominant language
- HTML
- Stars
- 5.5k
- Forks
- 782
- Avg merge
- 2d 33m
- Merged PRs (30d)
- 16
Description
**Describe the bug**
Incorrect owner in allure report if we specify other owner for test method then for class via @Owner annotation.
**To Reproduce**
1. create the following test class
```
import io.qameta.allure.android.annotations.Owner
import org.junit.Test
@Owner("Vasia")
class TestClass {
@Test
fun test1(){ }
@Owner("Kolya")
@Test
fun test2(){ }
}
```
2. run tests in that class
3. generate allure report from allure-results
**Expected behavior**
For test2() we see owner=Kolya
**Actual result**
For test2() we see owner=Vasia
**Environment (please complete the following information):**
| Allure version | 2.0.3 |
| --- | --- |
| Test framework | junit@4.12 |
| Generate report using | allure-cli@2.13.5 |
Contributor guide
Assessment
This issue has not been assessed yet.