I have a maven project in netbeans 6.9.1, there is a junit 4.4 test class there.
In the netbeans context menu, I can βclean and buildβ my project, and in the output I see that my test class was found and launched using surefire.
Now I select "debug test file" from the context menu, on the output it looks like
--- maven-compiler-plugin: 2.3.2: testCompile (default-testCompile) @ <project name> --- Compilation of 2 source files into <Project path> \ target \ test classes
--- maven-surefire-plugin: 2.7.2: test (default-cli) @ <project name> --- Surefire report directory: <Project path> \ target \ Surefire reports
TESTS
There are no tests to run.
What I checked so far:
The build project finds the test files, but nevertheless <testSourceDirectory> is and is correct
There is only one junit - 4.4 in * .pom dependencies
The class file looks like
import junit.framework.TestCase;
import org.junit.Test;
public class SomeTest extends TestCase {@ Verification public void testFoo () throws Exception {/ --- /}}
The netbeans debug action description looks like
fulfill the goal: test-compile surefire: test
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 mine addition, without it still failed forkMode = once Test = $ {class name}
there is no plugfire plugin in the * .pom project file
source share