Search the web
Sign In
New User? Sign Up
junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
running junit method from ant build   Message List  
Reply | Forward Message #21118 of 22044 |
Re: [junit] running junit method from ant build

Hello,

Rudra Prasad Tripathy wrote:
> can anybody suggest whether it is possible to run a single method of a
> test class? I am using junit 3.8.

I don't think this is possible out of the box.
And frankly I think you are doing something wrong, when you have a need
for such a feature.
My Ant-Builds usually run a bunch of tests and not just a single method.
Why do you need such a feature?

Greetings,
Malte



Thu Nov 20, 2008 7:55 am

maltefinster...
Offline Offline
Send Email Send Email

Forward
Message #21118 of 22044 |
Expand Messages Author Sort by Date

hi All, can anybody suggest whether it is possible to run a single method of a test class? I am using junit 3.8. Thanks in advance, Rudra...
Rudra Prasad Tripathy
rudra1in
Offline Send Email
Nov 19, 2008
7:37 pm

Hello, ... I don't think this is possible out of the box. And frankly I think you are doing something wrong, when you have a need for such a feature. My...
Malte Finsterwalder
maltefinster...
Offline Send Email
Nov 20, 2008
7:55 am

Did you look into a test suite? Something like: public class SomeTestSuite extends TestCase { public static Test suite() throws Exception { TestSuite suite =...
Scott Glaser
rsg00usa
Online Now Send Email
Nov 20, 2008
11:49 pm

It is possible with JUnit 3.8.1 (so probably with 3.8, too) and also with JUnit 4. I have done that in my patch for the Ant's <junit> task. You can see the ...
Marián Petrá
marian.petras
Offline Send Email
Nov 23, 2008
6:04 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help