Skip to main content



      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 13:37 Go to next message
Eclipse UserFriend
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 04:29 Go to previous messageGo to next message
Eclipse UserFriend
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 10:43 Go to previous messageGo to next message
Eclipse UserFriend
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 12:20 Go to previous message
Eclipse UserFriend
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: Fri Jul 25 01:43:36 EDT 2025

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

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

Back to the top