Home | Clover | Clover.NET | FishEye | Support | Account | Download | Buy Now

SwingViewer

Launches the Swing Viewer to allow interactive browsing of Code Coverage.

Usage

 java com.cenqua.clover.reporters.jfc.Viewer [OPTIONS] PARAMS

Params

-i, --initstring <file> The initstring of the coverage database.

Options

-p, --sourcepath <path> The source path to search when looking for source files.
-s, --span <interval> Specifies how far back in time to include coverage recordings from since the last Clover build. See Using Spans. Defaults to 0 seconds.
-tw, --tabwidth <number> Width to use when rendering tabs in source code.

API Usage

SwingViewer provides a simple API that accepts an array of strings representing the command line arguments and returns an integer result code. The following fragment illustrates use of the API:

 import com.cenqua.clover.reporters.jfc.Viewer;

    ...

    String [] viewerArgs = { "-i", "clover.db" };
    int result = Viewer.mainImpl(viewerArgs);
    if (result != 0) {
           // problem
    }

Examples

 java com.cenqua.clover.reporters.jfc.Viewer -i clover.db
            

Launch the Swing Viewer reading the Clover database "clover.db".

For more information about using the Swing Viewer, see the Using The Swing Viewer.