I wonder if it is a good practice to use JUnit’s @Ignore. And how people are using it?
I came up with the following use case: Let’s say I am developing a class and writing a JUnit test for it, which doesn’t pass, because I’m not quite done with the class. Is it a good practice to mark it with @Ignore?
I’m a little concerned that we might miss the ignored test case later on or that people start using it to ‘force’ tests to pass CI.
Thats pretty much fine, I suppose.
The docs says,
Hence, it means even if you forget to remove that afterwards, you should have been notified about that.
The example given in the docs, is completely resembling your case.