I don't know if it ever worked. I switched to the dependency hack. somebody needs to update the dogs that claim you can do this though On 2/12/08, Dan Fabulich <[EMAIL PROTECTED]> wrote: > Stephen Connolly wrote: > > > Has anybody tried running a test-jar with Surefire 2.4.1? > > > > It's not picking up any of our unit tests from the test jar. > > > > We're using JUnit 4.4 (but the tests in the test jar are all JUnit 3.8.1) > > > > It's picking up the unit tests from src/test/java fine, but we have > packaged > > our compatability tests are in a separate jar file so that they can be > used > > across the two modules that must be compatable. > > When you say "with Surefire 2.4.1" do you mean that this used to work in > an earlier version? > > Based on what I think I know about Surefire, it would surprise me if this > ever worked. The algorithm for finding tests searches for .class files in > target/test-classes. > > One workaround would be to use maven-dependency-plugin to unpack your > test-jar(s) into the target/test-classes directory. > > If this is a regression, please file an issue in JIRA with a minimal Maven > project that reproduces the problem. (In this case, I think the > appropriate thing would be a simple reactor build that installs a test-jar > in one sub-project and tries to run its tests in a second sub-project.) > > -Dan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
