title: Configuration failures resulting into Test skip in TestNG with no information in XMLs
body: <p>I am experimenting with TestNG and it is working from eclipse. I created a test suite and trying to run it from command line.</p>
  
  <p>Build fails with error saying </p>
  
  <p>Final output during build says:</p>
  
  <pre><code>  [testng] ===============================================
     [testng] Suite
     [testng] Total tests run: 1, Failures: 0, Skips: 1
     [testng] Configuration Failures: 1, Skips: 2
     [testng] ===============================================
     [testng] 
     [testng] The tests failed.
  </code></pre>
  
  <p>testng-results.xml and index.html don't have any failures reported.</p>
  
  <p>testng-failed.xml is like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite name="Failed suite [Default suite]"&gt;
    &lt;test name="Default test(failed)"&gt;
      &lt;classes&gt;
        &lt;class name="ABC.test.integration.PersistUrlTests"&gt;
          &lt;methods&gt;
            &lt;include name="springTestContextAfterTestClass"/&gt;
            &lt;include name="springTestContextBeforeTestClass"/&gt;
            &lt;include name="springTestContextPrepareTestInstance"/&gt;
            &lt;include name="springTestContextAfterTestMethod"/&gt;
            &lt;include name="checkTest"/&gt;
          &lt;/methods&gt;
        &lt;/class&gt; &lt;!-- ABC.test.integration.PersistUrlTests --&gt;
      &lt;/classes&gt;
    &lt;/test&gt; &lt;!-- Default test(failed) --&gt;
  &lt;/suite&gt; &lt;!-- Failed suite [Default suite] --&gt;
  </code></pre>
  
  <p>Test looks as follows:</p>
  
  <pre><code>@Test
  @ContextConfiguration(locations = { "file:spring-configuration/mydb-integration-testing.xml" })
  public class PersistUrlTests extends AbstractTestNGSpringContextTests {
  
          @Autowired
          protected MobiusDatabaseServiceClient mobiusDatabaseServiceClient;
  
          @Autowired
          UrlDAO urlDAO;
  
          @Autowired
          ScraperUrlDAO scraperUrlDAO;
  
          @BeforeClass
          public void init() throws Exception {
  
          }
  
  
          @Test
          public void checkTest() {
              GetActiveCategoriesResponse response = mobiusDatabaseServiceClient.newGetActiveCategoriesCall().call();
              System.out.println(response.getCategoryList());
              Assert.assertTrue(true);
          }
  }
  </code></pre>
  
  <p>Suite looks as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite name="Suite" parallel="none"&gt;
    &lt;test name="Test"&gt;
      &lt;classes&gt;
        &lt;class name="ABC.mydatabase.test.integration.PersistUrlTests"/&gt;
      &lt;/classes&gt;
    &lt;/test&gt; &lt;!-- Test --&gt;
  &lt;/suite&gt; &lt;!-- Suite --&gt;
  </code></pre>
  
  <p>But on the other hand, last updated time for this file is in past. I am not sure if it is getting updated or not.</p>
  
  <p>I am not sure how to debug these XML files generated by testNG as they appear to be out of sync to each other.</p>
  
  <p>Which file should exactly be looked at? And why are they not supporting to what "configuration" failed?</p>