[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?

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