question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@Tags doesn't work with inheritance.

See original GitHub issue

Version: Kotest 5.4.2

TagTest is included in tests with -Dkotest.tags=local args.

It works as I expected.

@Tags("local")
class TagTest : ShouldSpec({
    should("test") {

    }
})
TagTest is not included in tests with -Dkotest.tags=local args.

It doesn’t work as I expected. What I expect is that it works well like the first example code.

class TagTest : LocalTest({
    should("test") {

    }
})

@Tags("local")
abstract class LocalTest(body: ShouldSpec.() -> Unit) : ShouldSpec(body)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Kantiscommented, Oct 5, 2022

Tag inheritance can now be enabled in Kotest 5.5, enjoy 😃

1reaction
Kantiscommented, Aug 31, 2022

Thanks. I respect that it’s a matter of taste and perhaps I was being too opinionated. 😃

I made a draft for this here: https://github.com/kotest/kotest/pull/3199

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Project inheritance doesn't work with client tags
I am not sure how the client tag inheritance is supposed to work. I installed the 8.0.2 rc today and decided to try...
Read more >
Wouldn't tag inheritance make sense? - Meta Stack Overflow
Amen. Tags need inheritance. They need hierarchy. For example, I think of html5 as being a shorthand for html/5, or maybe html/html5. Or...
Read more >
Tag Inheritance (The Org Manual)
6.1 Tag Inheritance. Tags make use of the hierarchical structure of outline trees. If a heading has a certain tag, all subheadings inherit...
Read more >
suggestion: tag inheritance (not the ... - Meta Stack Exchange
IMHO, there are valid reasons for and against the tag inheritance. Could creating the links (actually a DAG) without enforcing it be the ......
Read more >
Tags attribute isn't really inheritable (even though it's ... - GitHub
We could certainly argue about composition over inheritance...that said, if any of those were really issues, the solution would simply be to make...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found