Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to relaunch a single test within Eclipse
How to relaunch a single test within Eclipse [message #41224] Tue, 30 June 2009 15:49 Go to next message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
Hi all,

First of all, I've been using SWTBot more and more and I find it really
usefull for my UI tests. I want to says congrats to Ketan Padegaonkar
and to the other contributers I've seen so far. I'm getting a bigger
test base by the day.

But, as I'm getting more test case, I'm getting more failures! I'm also
a user of JUnit inside Eclipse and I find it really useful that in the
JUnit view I can right-click on a single test and rerun only that test
or the tests that failed (with the Rerun Test - Failures First button).
I was wondering if that could be possible with my SWTBot test case, it
could really speed up the rerunning of failed tests.

I did a first look at how JUnit does that or if SWTBot could use an
extension point of org.eclipse.jdt.junit but I didn't have any luck up
to now...

Thanks again!
P
Re: How to relaunch a single test within Eclipse [message #41258 is a reply to message #41224] Tue, 30 June 2009 18:44 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Hmm... For some reasons I'm unable to click on the 'rerun tests --
failures first' button because it's disabled! This seems to be because
eclipse does not seem to support that functionality with junit4.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr


On 30/6/09 21:19, Pascal Gelinas wrote:
> Hi all,
>
> First of all, I've been using SWTBot more and more and I find it really
> usefull for my UI tests. I want to says congrats to Ketan Padegaonkar
> and to the other contributers I've seen so far. I'm getting a bigger
> test base by the day.
>
> But, as I'm getting more test case, I'm getting more failures! I'm also
> a user of JUnit inside Eclipse and I find it really useful that in the
> JUnit view I can right-click on a single test and rerun only that test
> or the tests that failed (with the Rerun Test - Failures First button).
> I was wondering if that could be possible with my SWTBot test case, it
> could really speed up the rerunning of failed tests.
>
> I did a first look at how JUnit does that or if SWTBot could use an
> extension point of org.eclipse.jdt.junit but I didn't have any luck up
> to now...
>
> Thanks again!
> P
Re: How to relaunch a single test within Eclipse [message #41318 is a reply to message #41258] Tue, 30 June 2009 19:10 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Copying the JDT newsgroup for any inputs they may have.

On 1/7/09 00:14, Ketan Padegaonkar wrote:
> Hmm... For some reasons I'm unable to click on the 'rerun tests --
> failures first' button because it's disabled! This seems to be because
> eclipse does not seem to support that functionality with junit4.

Further investigation reveals that the culprit is indeed the JUnit
View[1]'s updateRerunFailedFirstAction() method. Is there a reason why
rerun failed tests is not supported with junit4, there's a class called
FailuresFirstPrioritizer but that's only used with junit3 and not junit4.

[1] -
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.jun it/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart. java?revision=1.157&view=markup

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Previous Topic:UI deadlock when typing character with SWTKeyboardStrategy
Next Topic:Re: install documentation
Goto Forum:
  


Current Time: Fri Apr 26 00:01:10 GMT 2024

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

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

Back to the top