Re: Annotation driven Junit Test cases
David Saff <[email protected]>
| Newsgroups | gmane.comp.java.junit.user |
|---|---|
| Message-ID | <CALrw-PxLY0v51WQPOQJ0zTiffGSLpYUZ7yS3ejiSz6_R5rN69A@mail.gmail.com> |
SG, At this point, I think you should try to bootstrap your project outside of JUnit. Once something is in core JUnit, I try hard to guarantee that it is very unlikely to change in breaking ways, and this big an idea, at this early a stage, that degree of calcification is the last thing you want. If you find yourself tempted to make changes to core JUnit code in order to get the extension points that you need, please open pull requests for individual changes. Good luck! David On Wed, Apr 24, 2013 at 2:16 AM, sourabh <[email protected]> wrote: > ** > > > Hi, > > My team has recently started work on trying to extend Junit to support all > inclusive annotation driven testing of a method in Java. > > What I mean is that if we have a method > > public int add(int a ,int b) > > then, instead of having to write a separate class for testing it, we would > like to annotate the method as follows > > @AutoTest > @InputParams > @AutoAssert > public int add(int a,int b) > > The responsibility of setting up junit to understand and execute this set > of annotation would be delegated t our custom Runner. > > The example above is quite basic as we plan to support testing for complex > input objects that are seeded using an XML file. > > We are in pretty advanced stages of completing this implementation. Please > let me know how can we share our code for approvals/reviews with the Junit > community. > > Thanks, > SG > > > [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/junit/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/junit/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/