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
No More Missing TestNG Tests
I often forget to add newly created tests to the testng.xml, which is used in our TeamCity build, and by the time I realize that they don't run something is surely went wrong. What a bummer! Not any more, fortunately — IntelliJ IDEA makes sure no tests are missing. All it takes is to enable the Undeclared test inspection under TestNG in the Errors section of the Settings dialog.
IntelliJ IDEA provides JUnit integration out of the box, but it does not mean that you cannot use other test frameworks. TestNG-J is a plugin that provides integration with the TestNG framework in a very similar way to the native IntelliJ IDEA integration with JUnit. TestNG-J adds its own type of run/debug configuration that allows for running tests. It also displays testing results and highlights