[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Automatic adding of a method to a test class?
|
- From: Michael Pellaton <groups@xxxxxxxxxxx>
- Date: Fri, 18 Sep 2009 05:52:20 +0200
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Hello
[...]
>It looks like this has to be done manually.
Well, unfortunately you are right :-(
You might want to file a feature request at bugs.eclipse.org/bugs
> Also, it would be nice if there was some way to validate a test class to
> ensure that all public methods are being tested. Can this be done now?
Two possible solutions come to my mind:
- Static code analysis (write your own checkstyle or pmd check)
- Use a code coverage tool like eclemma (www.eclemma.org). Besides
showing you whether all methods are called, it tells you which lines
of code are uncovered by the test which is IMHO a more accurate and
more useful information for the developer.
Michael