Provide a @FailAt annotation
See original GitHub issueInspired by https://twitter.com/mikeveerman/status/1464162014444638258
It would be nice to provide an annotation that fails at a specified date, with on optional reason. Something like this:
@FailAt(date = "2022-01-01", reason = "An optional reason")
@Test
void should_fail_at_the_provided_date() {
// ...
}
This could be a great way to remind oneself of unpaid technical debt but could probably also be used in other contexts.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
lloydmeta/provide: @provide Scala annotation so you can ... - GitHub
provide Scala annotation so you can annotate abstract method ... _ // The following will fail at compile time, telling you that there...
Read more >JUnit Annotations Tutorial with Example: What is @Test and ...
This class provides a bunch of assertion methods useful in writing a test case. If all assert statements are passed, test results are...
Read more >Maven build Failure on annotation - Stack Overflow
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project test: Compilation failure: Compilation ...
Read more >A Program Annotation Facility for the Java Programming ...
A second example of ad hoc program annotation already present in the Java ... Class files that invoke the accessor for the removed...
Read more >Annotation issues at runtime - mypy 0.991 documentation
Use of string literal types or type comments. Use of typing.TYPE_CHECKING. We provide a description of these before moving onto discussion of specific...
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
We talked about this at our last team meeting and want you to invite to take part in a discussion to think about this and similar use cases in a more global view.
Feel free to write down your thoughts and ideas in #550 - thank you!
Hm I see this is the same as
DisableUntil
annotation #366.edit: @Michael1993 explained me the difference.