Re: Annotation driven Junit Test cases
"mureinik" <[email protected]>
| Newsgroups | gmane.comp.java.junit.user |
|---|---|
| Message-ID | <[email protected]> |
First timer here at JUnit, please excuse any faux-pas. I was wondering if you aren't concerned about clattering your production code with testing annotations, JUnit dependencies, etc. --- In [email protected], Henning Groß <igaffai@...> wrote: > > You need to fork the junit repo on github and file a pull request. I do not > like the idea too much, tho. It puts a lot of waste in the code and i dont > believe in many use-cases where a test case is that simple. > Am 24.04.2013 12:50 schrieb "sourabh" <sourabh707@...>: > > > 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 > > > > > > > > ------------------------------------ > > > > Yahoo! Groups Links > > > > > > > > > > > [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/