How Can I Run A TestNG TestSuite Without An XML File?

Answered

I want to specify my TestNG tests in Java and not in xml, similar to how I can do it with JUnit;

@RunWith(Suite.class)
@Suite.SuiteClasses({
TestOne.class,
TestTwo.class
})
public class JUnitTestSuite {
}

Stackoverflow seems to think that this is a problem with the IDEA plugin

http://stackoverflow.com/questions/42492711/how-do-i-run-a-testng-testsuite-in-idea-eclipse-without-an-xml-file

 Is there a way to do it in IDEA?

 

0
1 comment

No, IDEA can't run TestNG suites without the XML.

0

Please sign in to leave a comment.