[OWASP-ESAPI] OT: Eclipse plugins for code coverage and JUnit testing
dstine.code at gmail.com
Sun Aug 30 18:44:08 EDT 2009
I've had success with Cobertura. So far I've mostly been interested
in answering the same basic question - whether or not blocks of code
or even entire classes have been exercised by the test suite.
I've only used the Ant tasks. I don't think there is an Eclipse plug-in.
One stumbling block was that since interfaces aren't instrumented,
they are not emitted by the instrumentation task. So be sure to copy
them over separately or else your unit tests won't run properly.
On Sun, Aug 30, 2009 at 5:11 PM, Kevin W. Wall<kevin.w.wall at gmail.com> wrote:
> This is slightly OT, but I was wondering if anyone on this list
> has had any experience with any 'code coverage' tools (especially
> those that are Eclipse plugins).
> I'm trying to write JUnit tests for some new ESAPI Java code using
> Eclipse and would like to be able to have some kind of assistance to
> ensure that I've at least done a decent jump 'covering' the class under
> test. (I realize there are many variations of definitions of 'coverage',
> but at this point, I'd be happen with even the simplest definition of
> executing all the executable lines of code at least once.)
> I found a long list of open source code coverage tools at:
> plus several others via Google search.
> I don't have time to experiment with them all, so was wondering
> if anyone has any recommendations they could make that they have
> used and are happy with. (Also, recommendations to avoid a certain
> tool / plugin is OK too.)
> Thanks in advance,
> Kevin W. Wall
> "The most likely way for the world to be destroyed, most experts agree,
> is by accident. That's where we come in; we're computer professionals.
> We cause accidents." -- Nathaniel Borenstein, co-creator of MIME
> OWASP-ESAPI mailing list
> OWASP-ESAPI at lists.owasp.org
More information about the OWASP-ESAPI