Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » @RunWith(Enclosed.class) annotated JUnit test classes hang when whole project is tested
@RunWith(Enclosed.class) annotated JUnit test classes hang when whole project is tested [message #759723] Tue, 29 November 2011 18:37 Go to next message
Jens Piegsa is currently offline Jens PiegsaFriend
Messages: 16
Registered: July 2009
Location: Germany
Junior Member

Hi,

I've tried out the Enclosed test runner lately to group my test methods.
Running single test classes works fine, but running them all causes the
junit tree view of eclipse to hang at some indefinited points in time.
It's unlikely that these classes affect each other in a way that could
cause this problem. Maven executes all tests.
I'm currently using eclipse 3.7 and junit 4.10. Any ideas how to solve
this issue?

Regards,
Jens
Re: @RunWith(Enclosed.class) annotated JUnit test classes hang when whole project is tested [message #759837 is a reply to message #759723] Wed, 30 November 2011 09:29 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 11/30/2011 12:07 AM, Jens Piegsa wrote:
> Hi,
>
> I've tried out the Enclosed test runner lately to group my test methods.
> Running single test classes works fine, but running them all causes the
> junit tree view of eclipse to hang at some indefinited points in time.
> It's unlikely that these classes affect each other in a way that could
> cause this problem. Maven executes all tests.
> I'm currently using eclipse 3.7 and junit 4.10. Any ideas how to solve
> this issue?
>
> Regards,
> Jens

Eclipse runs all tests in a single VM. Does Maven run the tests in
separate VMs?

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Re: @RunWith(Enclosed.class) annotated JUnit test classes hang when whole project is tested [message #759935 is a reply to message #759837] Wed, 30 November 2011 15:43 Go to previous messageGo to next message
Jens Piegsa is currently offline Jens PiegsaFriend
Messages: 16
Registered: July 2009
Location: Germany
Junior Member

Hi,

it looks like Maven also uses only a single VM instance.
I figured out that running a TestSuite instead of letting
eclipse collect all tests doesn't cause a hang.

cheers,
Jens

Am 30.11.2011 10:29, schrieb Deepak Azad:
> On 11/30/2011 12:07 AM, Jens Piegsa wrote:
>> Hi,
>>
>> I've tried out the Enclosed test runner lately to group my test methods.
>> Running single test classes works fine, but running them all causes the
>> junit tree view of eclipse to hang at some indefinited points in time.
>> It's unlikely that these classes affect each other in a way that could
>> cause this problem. Maven executes all tests.
>> I'm currently using eclipse 3.7 and junit 4.10. Any ideas how to solve
>> this issue?
>>
>> Regards,
>> Jens
>
> Eclipse runs all tests in a single VM. Does Maven run the tests in
> separate VMs?
>
Re: @RunWith(Enclosed.class) annotated JUnit test classes hang when whole project is tested [message #759957 is a reply to message #759935] Wed, 30 November 2011 17:20 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 11/30/2011 9:13 PM, Jens Piegsa wrote:
> I figured out that running a TestSuite instead of letting
> eclipse collect all tests doesn't cause a hang.

Please open a bug against JDT/UI
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Previous Topic:HELPPPP :(
Next Topic:Unable to update Eclipse
Goto Forum:
  


Current Time: Thu Mar 28 21:32:39 GMT 2024

Powered by FUDForum. Page generated in 0.02450 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top