How to run only selected Unit Tests from a class?

Answered

A lot of times I just want to run 3-4 methods from a class which has 50+tests. The Pattern option inside the Run Configuration only works for classes, but not methods....Is there a solution?

2 comments
Comment actions Permalink

Hello,

You may use the Tags to run the particular methods (please also see: https://www.baeldung.com/junit-filtering-tests):

0
Comment actions Permalink

Thank you, but I asked the question in the wrong thread. This was a plugin related question, sorry. I will leave the question here, it might be useful for somebody.

0

Please sign in to leave a comment.