Tag should have an interface it inherits and testcase config should have tagsFn
See original GitHub issueA super interface for Tag would allow people to make more interesting type hierarchies with their tags. Also, Test case config should have a tagsFn that passes the tags from defaultTestCaseConfig and allows each test case to override.
typealias TagsFn = (Set<Tag>) -> Set<Tag>
val a = Tag("a")
val b = Tag("b")
test("foo").config(tagsFn = { prev -> prev - a + b })
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
AEM Tagging Framework | Adobe Experience Manager
A tag has optional meta information such as a title, localized titles, and a description. The title should be displayed in user interfaces...
Read more >Can a C# class inherit attributes from its interface?
No. Whenever implementing an interface or overriding members in a derived class, you need to re-declare the attributes.
Read more >VLAN tagging, routing, and general pain
I get the feeling I should be able to just tag all three VLANs on this one port eventually and have the router...
Read more >Interfaces - define behavior for multiple types - Microsoft Learn
When interfaces declare a default implementation of a method, any class implementing that interface inherits that implementation (You need to ...
Read more >Test Case Config | Kotest
Each test can be configured with various parameters. After the test name, invoke the config function passing in the parameters you wish to...
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
SuperTag was just for illustrative purposes 🤣
As for the interface, changing Tag to an interface will break things (like the toString). So I think we might just be stuck. If you need inheritence, you could have a value inside your tag that is a sealed type.