On Thu, 6 Jul 2006, Paul Spencer wrote: Hi,
> (Maven 2.0.4) > I have configured my project to use an attached test per the "Guide to > using attached tests", > http://maven.apache.org/guides/mini/guide-attached-tests.html, but the > attached tests are not running. You can only use the tests by extending them - they're in the classpath but only test classes from target/test-classes (or src/test/java/) are being run. So just create an empty class that extends from your unit tests from the imported test artifact. The surefire plugin currently doesn't scan all .class files in all .jars for available tests. I'm not sure if that is what surefire is going to support, though. But the documentation certainly suggests that it works this way. -- Kenney > > 1) I have verified the test class exist in test jar, foo-SNAPSHOT-test.jar. > > 2) I am using the command "mvn test", but the attached test are not > being run. The attached test jar is listed in the "classpathElements" > display by "mvn -X test" > > Paul Spencer > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
