Menu

#68 Adding incremental instrumentation

open
nobody
None
5
2009-03-19
2009-03-19
Trung
No

We are developing a prototype Eclipse plugin for Cobertura (it is under testing now and may be open sourced soon). For such a plug-in to be useful, Cobertura needs the ability to instrument only classes that has been changed since the last instrumentation. We noted that Emma has this feature.

Here is the detail of the issue:

Every time I launch a test, I would instrument the classes and generate a coverage report after the execution. The problem is that every time I instrument, Cobertura would re-instrument the whole classpath, even
though only a few classes changed since the previous instrumentation - this is a big performance drawback when Cobertura is used in an interactive mode. There are many projects that takes about 1 minute to be fully
instrumented.

Discussion

  • Piotr Tabor

    Piotr Tabor - 2010-03-07

    Have you tried just exclude from instrumentation all other files then that one 'incremental'. It should work.

    What's the status of the plugin prototype ?

     
  • Joachim Hofer

    Joachim Hofer - 2010-03-10

    Cobertura doesn't really have an API, but still, you could just hook into the Main class of cobertura-instrument directly and call the respective single-class instrumentation method... - like I do in my own prototype eclipse plugin over at github. ;)

     
  • Nobody/Anonymous

    I like what you guys are up too. This sort of clever work and reporting! Keep up the terrific works guys I've you guys to my personal blogroll.
    cheap north face jackets http://uabvqpce7844.webgarden.com/

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.