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.

Provide a @FailAt annotation

See original GitHub issue

Inspired 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:open
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Bukamacommented, Dec 4, 2021

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!

1reaction
Bukamacommented, Dec 2, 2021

Hm I see this is the same as DisableUntil annotation #366.

edit: @Michael1993 explained me the difference.

Read more comments on GitHub >

github_iconTop 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 >

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