Thanks !! That worked :)
On 8/25/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote: > > It's possible but you have to : > - add a junit 4.x dependency in your project > For exemple : > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.1</version> > <type>jar</type> > </dependency> > - add an adapter in your tests : > /** > * @return instance of this as Junit test case > */ > public static junit.framework.Test suite () > { > return new JUnit4TestAdapter(IntTestSpringCoherency.class); > } > > http://jira.codehaus.org/browse/MPTEST-65 > > Arnaud > > On 24/08/07, Manali Joshi <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I want to include Junit4 unit tests for my project which uses maven 1.1. > > > > Currently, I am getting test failures when I try to run those with the > > following failure error - > > > > Testsuite: com.HibernateMappingsTest > > Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.328 sec > > > > Testcase: warning(junit.framework.TestSuite$1): FAILED > > No tests found in com.HibernateMappingsTest > > junit.framework.AssertionFailedError: No tests found in > > com.HibernateMappingsTest > > > > My project.xml includes the following plugin - > > <report>maven-junit-report-plugin</report> > > > > > > Is it possible to run junit4 tests in maven 1.1 ? If so, what plugin do > I > > need to use or what configuration am I missing ? Please help.. > > > > thanks, > > manali > > > > > -- > .......................................................... > Arnaud HERITIER > .......................................................... > OCTO Technology - aheritier AT octo DOT com > www.octo.com | blog.octo.com > .......................................................... > ASF - aheritier AT apache DOT org > www.apache.org | maven.apache.org > ........................................................... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >