Re: links between Junit tests and source code!!
Adam Sroka <[email protected]>
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Nov 26, 2009 at 12:38 PM, Steven Gordon <[email protected]> wrote: > > > > On Thu, Nov 26, 2009 at 9:37 AM, Adam Sroka <[email protected]> wrote: > > > You can also get a > > coverage report if you run Cobertura ( > > http://cobertura.sourceforge.net/sample/) which annotates the class to say > > what parts are covered by tests (But it doesn't tell you which test tests > > what.) > > I believe if you ran the tests one at a time and created a separate > report after running each test, each report would tell you what was > exercised by that particular test. > > I would not consider this level of detail to be worth that additional > amount of effort, but I believe it could be automated. I'm certain it could be automated, and I am almost as certain that there is an easier way. Both cobertura and junitreport are open source. I would consider looking at the code to see how they do it and doing something kinda similar. I bet that would be simpler and more effective than running cobertura repeatedly for each test. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/refactoring/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/refactoring/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/