You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adam Heath <do...@brainfood.com> on 2014/06/25 01:18:07 UTC
Re: Discussion: Moving to Java 7
So move them to a separate suite, defined in testdefs/, or ...
Since TestSuite is an extension of TestCase, have it explicitly add in
sub TestCase instances.
ps: starting up this old thread again
On 12/29/2013 01:24 PM, Adrian Crum wrote:
> It seems JUnit is not running the tests in the same sequence as
> before. The tests are failing when a later test depends on the results
> of a previous test.
>
> I am still looking into this.
>
> Adrian Crum
> Sandglass Software
> www.sandglass-software.com
>
> On 12/11/2013 6:15 AM, Jacques Le Roux wrote:
>> Yes here also, running
>> ant clean clean-data build load-demo run-tests
>>
>> I got 3 errors
>> accountingtests
>> testWithdraw
>> testDeposit
>> servicetests
>> entitytests
>> testSOAPSimpleService (this one fails sometimes here
>> even with Java 6)
>>
>> and 4 failures
>> entitytests
>> testFindDistinct
>> testForeignKeyRemove
>> testStoreByCondition
>> testRemoveByCondition
>>
>> Jacques
>>
>> On Wednesday, December 11, 2013 10:03 AM Adrian Crum
>> <ad...@sandglass-software.com> wrote:
>>> The tests are not passing on Java 7. I have tried it on three different
>>> computers. Does anyone else have that problem?
>>>
>>> Adrian Crum
>>> Sandglass Software
>>> www.sandglass-software.com
>>>
>>> On 12/7/2013 7:33 AM, Adrian Crum wrote:
>>>> Support for Java 6 is fading:
>>>>
>>>> http://java.com/en/download/faq/java_6.xml
>>>>
>>>> We need to discuss moving OFBiz over to Java 7.
>>>>
>>>> I have been building and running OFBiz R13 on Oracle Java 7 for over a
>>>> month, and there were some minor compilation problems, but they were
>>>> easy to fix.
>>>>
>>>> What do you think?
Re: Discussion: Moving to Java 7
Posted by Adam Heath <do...@brainfood.com>.
Then go!
On 06/25/2014 11:18 AM, Adrian Crum wrote:
> I have a patch ready to go.
>
> Adrian Crum
> Sandglass Software
> www.sandglass-software.com
>
> On 6/25/2014 8:43 AM, Adam Heath wrote:
>> If I get enough responses, I'll update
>> macros.xml/common.xml/build.xml(s) to force the issue.
>>
>> On 06/25/2014 08:48 AM, Jacques Le Roux wrote:
>>> Thanks Adam,
>>>
>>> Very good news: the tests are now passing here using Java 7
>>>
>>> So there is now nothing blocking us to move to Java 7 :)
>>>
>>> Jacques
>>>
>>>
>>> Le 25/06/2014 01:38, Adam Heath a écrit :
>>>> Fixing....
>>>>
>>>> On 06/24/2014 06:18 PM, Adam Heath wrote:
>>>>> So move them to a separate suite, defined in testdefs/, or ...
>>>>>
>>>>> Since TestSuite is an extension of TestCase, have it explicitly add
>>>>> in sub TestCase instances.
>>>>>
>>>>> ps: starting up this old thread again
>>>>>
>>>>> On 12/29/2013 01:24 PM, Adrian Crum wrote:
>>>>>> It seems JUnit is not running the tests in the same sequence as
>>>>>> before. The tests are failing when a later test depends on the
>>>>>> results of a previous test.
>>>>>>
>>>>>> I am still looking into this.
>>>>>>
>>>>>> Adrian Crum
>>>>>> Sandglass Software
>>>>>> www.sandglass-software.com
>>>>>>
Re: Discussion: Moving to Java 7
Posted by Adrian Crum <ad...@sandglass-software.com>.
I have a patch ready to go.
Adrian Crum
Sandglass Software
www.sandglass-software.com
On 6/25/2014 8:43 AM, Adam Heath wrote:
> If I get enough responses, I'll update
> macros.xml/common.xml/build.xml(s) to force the issue.
>
> On 06/25/2014 08:48 AM, Jacques Le Roux wrote:
>> Thanks Adam,
>>
>> Very good news: the tests are now passing here using Java 7
>>
>> So there is now nothing blocking us to move to Java 7 :)
>>
>> Jacques
>>
>>
>> Le 25/06/2014 01:38, Adam Heath a écrit :
>>> Fixing....
>>>
>>> On 06/24/2014 06:18 PM, Adam Heath wrote:
>>>> So move them to a separate suite, defined in testdefs/, or ...
>>>>
>>>> Since TestSuite is an extension of TestCase, have it explicitly add
>>>> in sub TestCase instances.
>>>>
>>>> ps: starting up this old thread again
>>>>
>>>> On 12/29/2013 01:24 PM, Adrian Crum wrote:
>>>>> It seems JUnit is not running the tests in the same sequence as
>>>>> before. The tests are failing when a later test depends on the
>>>>> results of a previous test.
>>>>>
>>>>> I am still looking into this.
>>>>>
>>>>> Adrian Crum
>>>>> Sandglass Software
>>>>> www.sandglass-software.com
>>>>>
>>>>> On 12/11/2013 6:15 AM, Jacques Le Roux wrote:
>>>>>> Yes here also, running
>>>>>> ant clean clean-data build load-demo run-tests
>>>>>>
>>>>>> I got 3 errors
>>>>>> accountingtests
>>>>>> testWithdraw
>>>>>> testDeposit
>>>>>> servicetests
>>>>>> entitytests
>>>>>> testSOAPSimpleService (this one fails sometimes here
>>>>>> even with Java 6)
>>>>>>
>>>>>> and 4 failures
>>>>>> entitytests
>>>>>> testFindDistinct
>>>>>> testForeignKeyRemove
>>>>>> testStoreByCondition
>>>>>> testRemoveByCondition
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>> On Wednesday, December 11, 2013 10:03 AM Adrian Crum
>>>>>> <ad...@sandglass-software.com> wrote:
>>>>>>> The tests are not passing on Java 7. I have tried it on three
>>>>>>> different
>>>>>>> computers. Does anyone else have that problem?
>>>>>>>
>>>>>>> Adrian Crum
>>>>>>> Sandglass Software
>>>>>>> www.sandglass-software.com
>>>>>>>
>>>>>>> On 12/7/2013 7:33 AM, Adrian Crum wrote:
>>>>>>>> Support for Java 6 is fading:
>>>>>>>>
>>>>>>>> http://java.com/en/download/faq/java_6.xml
>>>>>>>>
>>>>>>>> We need to discuss moving OFBiz over to Java 7.
>>>>>>>>
>>>>>>>> I have been building and running OFBiz R13 on Oracle Java 7 for
>>>>>>>> over a
>>>>>>>> month, and there were some minor compilation problems, but they
>>>>>>>> were
>>>>>>>> easy to fix.
>>>>>>>>
>>>>>>>> What do you think?
>>>>
>>>
>>>
>>
>
Re: Discussion: Moving to Java 7
Posted by Adam Heath <do...@brainfood.com>.
If I get enough responses, I'll update
macros.xml/common.xml/build.xml(s) to force the issue.
On 06/25/2014 08:48 AM, Jacques Le Roux wrote:
> Thanks Adam,
>
> Very good news: the tests are now passing here using Java 7
>
> So there is now nothing blocking us to move to Java 7 :)
>
> Jacques
>
>
> Le 25/06/2014 01:38, Adam Heath a écrit :
>> Fixing....
>>
>> On 06/24/2014 06:18 PM, Adam Heath wrote:
>>> So move them to a separate suite, defined in testdefs/, or ...
>>>
>>> Since TestSuite is an extension of TestCase, have it explicitly add
>>> in sub TestCase instances.
>>>
>>> ps: starting up this old thread again
>>>
>>> On 12/29/2013 01:24 PM, Adrian Crum wrote:
>>>> It seems JUnit is not running the tests in the same sequence as
>>>> before. The tests are failing when a later test depends on the
>>>> results of a previous test.
>>>>
>>>> I am still looking into this.
>>>>
>>>> Adrian Crum
>>>> Sandglass Software
>>>> www.sandglass-software.com
>>>>
>>>> On 12/11/2013 6:15 AM, Jacques Le Roux wrote:
>>>>> Yes here also, running
>>>>> ant clean clean-data build load-demo run-tests
>>>>>
>>>>> I got 3 errors
>>>>> accountingtests
>>>>> testWithdraw
>>>>> testDeposit
>>>>> servicetests
>>>>> entitytests
>>>>> testSOAPSimpleService (this one fails sometimes here
>>>>> even with Java 6)
>>>>>
>>>>> and 4 failures
>>>>> entitytests
>>>>> testFindDistinct
>>>>> testForeignKeyRemove
>>>>> testStoreByCondition
>>>>> testRemoveByCondition
>>>>>
>>>>> Jacques
>>>>>
>>>>> On Wednesday, December 11, 2013 10:03 AM Adrian Crum
>>>>> <ad...@sandglass-software.com> wrote:
>>>>>> The tests are not passing on Java 7. I have tried it on three
>>>>>> different
>>>>>> computers. Does anyone else have that problem?
>>>>>>
>>>>>> Adrian Crum
>>>>>> Sandglass Software
>>>>>> www.sandglass-software.com
>>>>>>
>>>>>> On 12/7/2013 7:33 AM, Adrian Crum wrote:
>>>>>>> Support for Java 6 is fading:
>>>>>>>
>>>>>>> http://java.com/en/download/faq/java_6.xml
>>>>>>>
>>>>>>> We need to discuss moving OFBiz over to Java 7.
>>>>>>>
>>>>>>> I have been building and running OFBiz R13 on Oracle Java 7 for
>>>>>>> over a
>>>>>>> month, and there were some minor compilation problems, but they
>>>>>>> were
>>>>>>> easy to fix.
>>>>>>>
>>>>>>> What do you think?
>>>
>>
>>
>
Re: Discussion: Moving to Java 7
Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks Adam,
Very good news: the tests are now passing here using Java 7
So there is now nothing blocking us to move to Java 7 :)
Jacques
Le 25/06/2014 01:38, Adam Heath a écrit :
> Fixing....
>
> On 06/24/2014 06:18 PM, Adam Heath wrote:
>> So move them to a separate suite, defined in testdefs/, or ...
>>
>> Since TestSuite is an extension of TestCase, have it explicitly add in sub TestCase instances.
>>
>> ps: starting up this old thread again
>>
>> On 12/29/2013 01:24 PM, Adrian Crum wrote:
>>> It seems JUnit is not running the tests in the same sequence as before. The tests are failing when a later test depends on the results of a
>>> previous test.
>>>
>>> I am still looking into this.
>>>
>>> Adrian Crum
>>> Sandglass Software
>>> www.sandglass-software.com
>>>
>>> On 12/11/2013 6:15 AM, Jacques Le Roux wrote:
>>>> Yes here also, running
>>>> ant clean clean-data build load-demo run-tests
>>>>
>>>> I got 3 errors
>>>> accountingtests
>>>> testWithdraw
>>>> testDeposit
>>>> servicetests
>>>> entitytests
>>>> testSOAPSimpleService (this one fails sometimes here even with Java 6)
>>>>
>>>> and 4 failures
>>>> entitytests
>>>> testFindDistinct
>>>> testForeignKeyRemove
>>>> testStoreByCondition
>>>> testRemoveByCondition
>>>>
>>>> Jacques
>>>>
>>>> On Wednesday, December 11, 2013 10:03 AM Adrian Crum <ad...@sandglass-software.com> wrote:
>>>>> The tests are not passing on Java 7. I have tried it on three different
>>>>> computers. Does anyone else have that problem?
>>>>>
>>>>> Adrian Crum
>>>>> Sandglass Software
>>>>> www.sandglass-software.com
>>>>>
>>>>> On 12/7/2013 7:33 AM, Adrian Crum wrote:
>>>>>> Support for Java 6 is fading:
>>>>>>
>>>>>> http://java.com/en/download/faq/java_6.xml
>>>>>>
>>>>>> We need to discuss moving OFBiz over to Java 7.
>>>>>>
>>>>>> I have been building and running OFBiz R13 on Oracle Java 7 for over a
>>>>>> month, and there were some minor compilation problems, but they were
>>>>>> easy to fix.
>>>>>>
>>>>>> What do you think?
>>
>
>
--
Re: Discussion: Moving to Java 7
Posted by Adam Heath <do...@brainfood.com>.
Ok, I just fixed a bunch of these, but there were only in 2 test
suites. I was able to do a clean-all load-demo run-tests loop 10 times,
without issue.
ps: When I do this kind of work, I symlink runtime/data/derby ->
/dev/shm/derby. I also keep my virtual-machine with 4 cores and 1.5G,
and the time for just one loop is around 5 minutes. The clean-all
load-demo bit runs in 45 seconds. The entity-tests that I fixed took
1.5 minutes total.
On 06/24/2014 06:38 PM, Adam Heath wrote:
> Fixing....
>
> On 06/24/2014 06:18 PM, Adam Heath wrote:
>> So move them to a separate suite, defined in testdefs/, or ...
>>
>> Since TestSuite is an extension of TestCase, have it explicitly add
>> in sub TestCase instances.
>>
>> ps: starting up this old thread again
>>
>> On 12/29/2013 01:24 PM, Adrian Crum wrote:
>>> It seems JUnit is not running the tests in the same sequence as
>>> before. The tests are failing when a later test depends on the
>>> results of a previous test.
>>>
>>> I am still looking into this.
>>>
>>> Adrian Crum
>>> Sandglass Software
>>> www.sandglass-software.com
>>>
>>> On 12/11/2013 6:15 AM, Jacques Le Roux wrote:
>>>> Yes here also, running
>>>> ant clean clean-data build load-demo run-tests
>>>>
>>>> I got 3 errors
>>>> accountingtests
>>>> testWithdraw
>>>> testDeposit
>>>> servicetests
>>>> entitytests
>>>> testSOAPSimpleService (this one fails sometimes here
>>>> even with Java 6)
>>>>
>>>> and 4 failures
>>>> entitytests
>>>> testFindDistinct
>>>> testForeignKeyRemove
>>>> testStoreByCondition
>>>> testRemoveByCondition
>>>>
>>>> Jacques
>>>>
>>>> On Wednesday, December 11, 2013 10:03 AM Adrian Crum
>>>> <ad...@sandglass-software.com> wrote:
>>>>> The tests are not passing on Java 7. I have tried it on three
>>>>> different
>>>>> computers. Does anyone else have that problem?
>>>>>
>>>>> Adrian Crum
>>>>> Sandglass Software
>>>>> www.sandglass-software.com
>>>>>
>>>>> On 12/7/2013 7:33 AM, Adrian Crum wrote:
>>>>>> Support for Java 6 is fading:
>>>>>>
>>>>>> http://java.com/en/download/faq/java_6.xml
>>>>>>
>>>>>> We need to discuss moving OFBiz over to Java 7.
>>>>>>
>>>>>> I have been building and running OFBiz R13 on Oracle Java 7 for
>>>>>> over a
>>>>>> month, and there were some minor compilation problems, but they were
>>>>>> easy to fix.
>>>>>>
>>>>>> What do you think?
>>
>
Re: Discussion: Moving to Java 7
Posted by Adam Heath <do...@brainfood.com>.
Fixing....
On 06/24/2014 06:18 PM, Adam Heath wrote:
> So move them to a separate suite, defined in testdefs/, or ...
>
> Since TestSuite is an extension of TestCase, have it explicitly add in
> sub TestCase instances.
>
> ps: starting up this old thread again
>
> On 12/29/2013 01:24 PM, Adrian Crum wrote:
>> It seems JUnit is not running the tests in the same sequence as
>> before. The tests are failing when a later test depends on the
>> results of a previous test.
>>
>> I am still looking into this.
>>
>> Adrian Crum
>> Sandglass Software
>> www.sandglass-software.com
>>
>> On 12/11/2013 6:15 AM, Jacques Le Roux wrote:
>>> Yes here also, running
>>> ant clean clean-data build load-demo run-tests
>>>
>>> I got 3 errors
>>> accountingtests
>>> testWithdraw
>>> testDeposit
>>> servicetests
>>> entitytests
>>> testSOAPSimpleService (this one fails sometimes here
>>> even with Java 6)
>>>
>>> and 4 failures
>>> entitytests
>>> testFindDistinct
>>> testForeignKeyRemove
>>> testStoreByCondition
>>> testRemoveByCondition
>>>
>>> Jacques
>>>
>>> On Wednesday, December 11, 2013 10:03 AM Adrian Crum
>>> <ad...@sandglass-software.com> wrote:
>>>> The tests are not passing on Java 7. I have tried it on three
>>>> different
>>>> computers. Does anyone else have that problem?
>>>>
>>>> Adrian Crum
>>>> Sandglass Software
>>>> www.sandglass-software.com
>>>>
>>>> On 12/7/2013 7:33 AM, Adrian Crum wrote:
>>>>> Support for Java 6 is fading:
>>>>>
>>>>> http://java.com/en/download/faq/java_6.xml
>>>>>
>>>>> We need to discuss moving OFBiz over to Java 7.
>>>>>
>>>>> I have been building and running OFBiz R13 on Oracle Java 7 for
>>>>> over a
>>>>> month, and there were some minor compilation problems, but they were
>>>>> easy to fix.
>>>>>
>>>>> What do you think?
>