Getting Started: Comet Options
Comet currently supports JDK 1.4, 5 and 6. To install the CoView JAR file, download the Jar file . A license file is required, and you can get it from here.
| Option | Description |
|---|---|
| classname | com.codign.comet.Comet |
| stoponerror | Option can be "true" or "false". The default is "false". If "true", then the target will be stopped if Comet encounters methods that exceed your metrics AND have a severity of "error". |
| errorsonly | Option can be "true" or "false". The default is "false". If "true", then Comet only reports methods that exceed your metrics AND have a severity set to "error". |
| html | Option can be "true" or "false". The default is "false". If "true" and option output is used, then the output is in HTML format. |
| output | This option takes a directory and filename as its parameter. A report is generated in either XML or HTML, depending if the html option is used. |
| log | This option takes a directory and filename as its parameter. A log is created detailing all Comet activity. |
| license | This option takes the license path and license filename as its parameter. This option is required to use Comet. |
| classpathref | This is your classpath. Note that this must be defined with a separate <path> target. |
| <include name/> | The directory path and file name (wildcard * is acceptable) to include in testability analysis. |
| <exclude name/> | This option specifies which directory and filenames (wild card * is acceptable) to exclude in testability analysis. |
| <threshold name = "" value="" severity=""/> |
This is how you define your metrics, values and severities. Valid metric names: parameters,params,num_parameters,num_params exceptions,num_exceptions loc,linesofcode,lines_of_code cc,cyclomatic complexity paths,num_paths statics, staticinvocations,num_static_invocations anonclasses,num_anonymous_classes Metric definitions Values: This is your choice of acceptable values. Methods that exceed your metric value will be flagged based on the metric severity. Severity ignore error,err warning, warn |
