title: Debugging maven tests with netbeans 6.9.1?
body: <p>I have a maven project in netbeans 6.9.1, in there a junit 4.4 test class.</p>
  
  <p>In netbeans context menu I can "clean and build" my project and in output I can see, that my test class was found and run by surefire. </p>
  
  <p>Now I choose from context menu "debug test file", in output it goes like </p>
  
  <p>--- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ &lt; project-name> ---
  Compiling 2 source files to &lt; project-path>\target\test-classes</p>
  
  <p>--- maven-surefire-plugin:2.7.2:test (default-cli) @ &lt; project-name> ---
  Surefire report directory: &lt; project-path>\target\surefire-reports</p>
  
  <hr>
  
  <p>T E S T S</p>
  
  <hr>
  
  <p><strong>There are no tests to run.</strong></p>
  
  <p>What I've checked so far:</p>
  
  <ul>
  <li><p>Build project finds test files, but nonetheless  &lt; testSourceDirectory> is there and correct</p></li>
  <li><p>There is only one junit - 4.4 in *.pom dependencies</p></li>
  <li><p>class file itself looks like</p>
  
  <p>import junit.framework.TestCase;</p>
  
  <p>import org.junit.Test;</p>
  
  <p>public class SomeTest extends TestCase
  {
      @Test
      public void testFoo() throws Exception { /<em>---</em>/}
  }</p></li>
  <li><p>netbeans action description for debug looks like</p>
  
  <p>execute goal: test-compile surefire:test </p>
  
  <p>set properties : 
  jpda.listen=true
  maven.surefire.debug=-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}
  jpda.stopclass=${packageClassName}
  failIfNoTests=false // this is my addition, w/o it still failed
  forkMode=once
  test=${className}</p></li>
  <li><p>there is no surefire plugin section anywhere in project *.pom files</p></li>
  </ul>