Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » JUnit test with endless loop
JUnit test with endless loop [message #119370] Wed, 12 December 2007 08:52 Go to next message
Jiri Bjalek is currently offline Jiri BjalekFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,
I have question regarding behaviour of JUnit test execution.

I create new TPTP JUnit Test and I define single test method in it. And I
implement an endless loop in this test method. So far so good, but when I
run my test then obviously it starts running in a loop. My problem is that
when I push "Cancel" button on test progress dialog then test is canceled
but the JUnit runner still runs the method without posibility to get rid
of it otherwise then kill the process. I would expect TPTP to kill the
JUnit runner before cancel the test. Is this behaviour correct? At least I
would suggest this as new enhancement.

Regards
Jiri
Re: JUnit test with endless loop [message #119384 is a reply to message #119370] Wed, 12 December 2007 11:33 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Jiri,
Yes, this is a known defect
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=157463). I have added this
defect to the 4.5 plan. Please add a comment to the defect and/or add your
email to the CC list to track its progress.

Paul
"Jiri Bjalek" <jiri.bjalek@tietoenator.com> wrote in message
news:d73218b64d008e46849b012ee6cea5bc$1@www.eclipse.org...
> Hi,
> I have question regarding behaviour of JUnit test execution.
>
> I create new TPTP JUnit Test and I define single test method in it. And I
> implement an endless loop in this test method. So far so good, but when I
> run my test then obviously it starts running in a loop. My problem is that
> when I push "Cancel" button on test progress dialog then test is canceled
> but the JUnit runner still runs the method without possibility to get rid
> of it otherwise then kill the process. I would expect TPTP to kill the
> JUnit runner before cancel the test. Is this behavior correct? At least I
> would suggest this as new enhancement.
>
> Regards
> Jiri
>
Previous Topic:Extend TPTP plugin
Next Topic:TPTP and Java 6???
Goto Forum:
  


Current Time: Fri Apr 26 09:07:51 GMT 2024

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

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

Back to the top