This causes a lot of churn on debugging and I'm thinking there has to be a way to prevent this. Right now, if a test method does not exist (say it was misspelled), the suite will just skip that method and continue with the next one no issues. This causes lots of issues and it's difficult to find the reason. Here is an example:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Sampoe_testSuite" preserve-order="true">
<listeners>
<listener class-name="framework.Listener"/>
</listeners>
<test name="Sample_TestSuite-Part1" preserve-order="true">
<classes>
<class name="tests.FirstTest">
<methods>
<include name="firstMethod"/>
</methods>
</class>
<class name="tests.SecondTest">
<methods>
<include name="secondMethod"/>
<include name="thirdMethod"/>
</methods>
</class>
<class name="tests.ThirdTest">
<methods>
<include name="fourthMethod"/>
</methods>
</class>
</classes>
</test>
</suite>
Let's say that I misspelled the secondMethod of the SecondTest. It's actually sceondMethod in code. When I run this suite, there will be no errors, but what will happen is:
Runs FirstTest.firstMethod
Runs SecondTest.thirdMethod
Runs ThirdTest.fourthMethod
Notice that it just skips the misspelled method and continues on happily. I want it to fail the suite and say that there is a missing method. Is that possible?