@Tags doesn't work with inheritance.
See original GitHub issueVersion: 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:
- Created a year ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tag inheritance can now be enabled in Kotest 5.5, enjoy 😃
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