openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <michael.d.d...@gmail.com>
Subject Re: Running new test case after fixing src.
Date Fri, 10 Apr 2009 15:25:43 GMT
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=<<newTest>> 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 <ravi.palacherla@oracle.com>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=<<myNewTest>>
>
> 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=<<myNewTest>>
>
> 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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message