Running TestNG Test in IntelliJ

intellij-idea, testng

Solution

Yes you can!

Сheck the folder that contains the test classes whether marked as `Test Source Root`. In another case see whether installed TestNG-J plugin.

Update:

Problem

After running `Rebuild Project` successfully in `IntelliJ 13.1.3 Ultimate IDE`, I opened my Test NG test file. When right-clicking on the file, I don't see any option to run the test. How can I run an TestNG test in `IntelliJ 13.1.3`? This question is similar, but it's from 2012 with an unaccepted answer.

Original source