kotest / kotest-extensions-allure

Kotest extensions for Allure Test Reporting
Apache License 2.0
4 stars 5 forks source link

How to use Owner annotations or a funcs at AbstractContainerScope in BehaviorSpec/FunSpec and other Specs #65

Open Kolyall opened 4 months ago

Kolyall commented 4 months ago

I want to add Owner of TestCase, How to do it? How to use Owner annotations or a funcs at AbstractContainerScope in BehaviorSpec/FunSpec and other Specs? Example:

import io.kotest.core.spec.style.BehaviorSpec
import io.qameta.allure.Owner

class MyTest : BehaviorSpec(
    {
        @Owner("Mike")
        Given("a list") {
            @Owner("Nick")
            When("call sort") {
                @Owner("Alex")
                Then("the list should be sorted") {
                }
            }
        }
    },
)