openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miłosz Tylenda <mtyle...@o2.pl>
Subject Re: Running new test case after fixing src.
Date Fri, 10 Apr 2009 16:08:33 GMT
Hi Ravi,

mvn package takes so long probably because of tests. You could try adding "-DskipTests". For
example, I sometimes do:

mvn install -DskipTests

Regards,
Milosz


> Hi Mike,
> 
> Thanks for your response.
> 
> I ran mvn -o clean compile from "root directory" and
> mvn test -Dtest=> from openjpa-persistence-jdbc
> 
> My changed source code (QueryCacheStoreQuery) is under openjpa-kernel.
> 
> When I try to run mvn test -Dtest=> from  root (trunk) then it says "There are no
tests to run."
> 
> Thanks,
> Ravi.
> 
> 
> Hi Ravi,
> 
> Short answer : no. You do not need to do mvn -o clean package every time.
> 
> It sounds like the second time you ran mvn test -Dtest=> maven
> used the jars from your local repository instead of using your working copy.
> Did you run everything from the "root directory" of openjpa?
> 
> -mike
> 
> On Fri, Apr 10, 2009 at 10:19 AM, rpalache wrote:
> 
> >
> > Hi All,
> >
> > I am working on a fix for openJPA issue.
> > I developed a test case to demonstrate the issue and I can break it with
> > downloaded trunk openJPA code.
> >
> > ran mvn test –Dtest=>
> >
> > I can see assertion failure, as expected.
> >
> > I modified the openjpa source code to fix the issue, added some debug
> > statements into it to see if my changed code is picked next time I run the
> > test case.
> >
> > I ran mvn –o clean compile
> >
> > Ran mvn test –Dtest=>
> >
> > I did not see the debug statement that I added in my class and also the
> > test case failed again with same assertion failures.
> >
> > Now I ran  mvn -o clean package (which takes almost 60mins+ ) and then ran
> > my test again , which ran successfully.
> >
> > Do I have to run the complete "mvn –o clean package" everytime I modified
> > source code ?
> >
> > Please help.
> >
> > Regards,
> > Ravi.
> > --
> > View this message in context:
> > http://n2.nabble.com/Running-new-test-case-after-fixing-src.-tp2616702p2616702.html
> > Sent from the OpenJPA Developers mailing list archive at Nabble.com.
> >
> >
> 
> 
> 
> -- 
> View this message in context: http://n2.nabble.com/Running-new-test-case-after-fixing-src.-tp2616702p2616850.html
> Sent from the OpenJPA Developers mailing list archive at Nabble.com.
> 
> 

Mime
View raw message