Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

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

Open
Kolyall opened this issue Mar 27, 2024 · 1 comment

Comments

@Kolyall
Copy link

Kolyall commented Mar 27, 2024

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") {
                }
            }
        }
    },
)
@sksamuel
Copy link
Member

That's not supported. Only at the class level.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants