re: Why You Should Start Using JUnit 5 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: An intuitive method/function name is vital in every language, if it's not enough we got documentation and if we got access to source, inner comment...
 

Honestly, I don't really understand your point.
Sure, functional readable method names are important. But why would anyone stop doing that in favor of using @DisplayName? Is this just your hypothesis or did you actually see that?

Testing is not about how the code works but what it should do. This you won't get from looking at the code. Tests are the functional specification written in your language of choice. Having @DisplayName just makes this specification more readable.

As I pointed out already, @Nested is more "pollution", however when you execute the tests and you see them properly grouped and named in the IDE, it is very helpful.

code of conduct - report abuse