Testing Tip: Run Test Method from Abstract Test Class

Sometimes you have an abstract test class with test methods where the inheritors set up different environment. As it is impossible to run an abstract class you had to enumerate inheritors manually, choose corresponding methods and run these methods one by one.

Now (since IntelliJ IDEA 11.1) it is possible to run tests right from the abstract base class and simply choose inheritors from the popup.

This works for JUnit and for TestNG tests.

This entry was posted in New Features and tagged , , . Bookmark the permalink.

2 Responses to Testing Tip: Run Test Method from Abstract Test Class

  1. Jan Jordanow says:

    is there some configuration? cause this ‘popup with inheritors ‘ doesn’t pop up each time. Is it a bug or feature?

  2. Anna Kozlova says:

    Hi Jan,

    Sounds more like a bug. Could you please file more details? When it doesn’t appear? Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>