Re: links between Junit tests and source code!!

"strazhce" <[email protected]>
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
Hi.

What do you exactly expect from this *automated* traceability?
You could always use some syntax in comments. Also you may create a custom annotation and have something like

@TestFor(Foo.class)
public class MyTests{
...
}

But again, what do you expect from the automated traceability?

Oleg

--- In [email protected], ABDULLAH KASSEF <abboud2000_99@...> wrote:
>
> I mean that how I can create automated traceability links between junit tests and code, in other words, how I can know that UT1 tests Class1 and Class2.(not necessary by naming convention)
> 
> --- On Wed, 11/25/09, Kaleb Pederson <kaleb.pederson@...> wrote:
> 
> 
> From: Kaleb Pederson <kaleb.pederson@...>
> Subject: Re: [refactoring] links between Junit tests and source code!!
> To: [email protected]
> Date: Wednesday, November 25, 2009, 10:48 AM
> 
> 
>   
> 
> 
> 
> On Wed, Nov 25, 2009 at 10:39 AM, ABDULLAH KASSEF
> <abboud2000_99@ yahoo.com> wrote:
> > How I can create a links between Junit tests and its related tested code??
> 
> What do you mean "links?"
> 
> Eclipse allows you to specify in the new test class wizard that the
> test is for such-and-such class. In a way, this links the test class
> to a "normal" class. I'm not sure how Eclipse would handle things if
> I created two different projects -- one for the test code and one for
> the regular code.
> 
> --
> Kaleb Pederson
> 
> Blog - http://kalebpederso n.com
> Twitter - http://twitter. com/kalebpederso n
> 
> 
> 
> 
> 
> 
> 
> 
>       
> 
> [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/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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.