Menu

#68 Exclude entire methods from instrumentation

open
None
5
2010-07-08
2008-07-03
No

Currently it is not possible to exclude entire methods from being instrumented. Rather, the ignore command just filters out method calls within custom methods themselves (e.g. logging statements within custom methods).

This patch introduces a new command "ignoreMethod", which can be used from command line or ant tasks, and skips over entire methods to ignore them from Cobertura reports. In contrast to patch #1576631, the ignore statement is not limited to just setter and getter methods.

For method matching, the specified ignore statement can be any substring of the actual method -- making the ignore method more powerful (e.g. .set* and .get* to ignore all setters and getters).

Discussion

  • Fabian Reichlin

    Fabian Reichlin - 2008-07-03

    ignoreMethod

     
  • John Lewis

    John Lewis - 2010-07-08
    • assigned_to: nobody --> lewijw
     
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.