Re: links between Junit tests and source code!!
John Roth <[email protected]>
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Message-ID | <[email protected]> |
Ron Jeffries wrote:
>
>
> Hello, ABDULLAH. On Friday, November 27, 2009, at 9:49:34 AM, you
> wrote:
>
> > I think create a separate report after running each test does not
> possible, since I have a
> > big project repository i.e. about 150 test cases with about 450-500
> class, so my problem
> > now is how I can know which test case tests this class ignoring a
> > naming convention ?, because most of these test cases names do not
> > relate to class names, also you can find
> > one test case tests multi classes , and other test case calls multi
> classes and tests
> > one of them, so my question is there is a tool I can use to
> > create a links between them or/and how I can develop a tool create
> such these links??
>
> Why do you want to know these connections? What will you use them
> for?
>
> Ron Jeffries
> www.XProgramming.com
> www.xprogramming.com/blog
> You have to either laugh or cry. -- Bill Rogers
>
I don't know about the OP, but when I was still working on Python FIT,
I decided to see what I could do to have the test cases for a feature tell
a story about the feature - you know, one of those XP things that's
sometimes
mentioned and seldom done?
Drive-by test coverage meant the story would be incomplete.
The same thing is true with acceptance tests - drive-by coverage
doesn't give me any assurance that the test is actually exercising
the right code.
What I did was a single script (named, interestingly enough, t,)
that used a dict to define what I was testing and build the test
script for it. It could do unit and acceptance tests with and without
coverage and for single test modules and the entire project.
John Roth
------------------------------------
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/