EclEmma 3.1.9 | Java Code Coverage for Eclipse | |
ArchitectureDesign decisions for the EclEmma plug-in should be based on the following guidelines:
The following sections provide a high level overview about EclEmma's key implementation strategies. Separate Backend from GUIEclEmma is packaged in two plug-ins: The core plug-in offers all functionality for launching and analysis. It has no dependencies on the Eclipse UI and all functionality can also be used in headless mode. The JUnit tests for the core plug-in run headless. The UI plug-in provides the workbench integration and relies on the core's public API only. This approach also verifies the usability of the core API. JaCoCo Execution Data FilesTo avoid modifying projects all data files are stored in the plug-in's state location. Launching in Coverage ModeInstead of re-implementing launcher for the different launch types, the existing launchers for the Run mode are used with adjusted launch configurations. The coverage launchers perform these steps:
Coverage Session
A coverage session (
Whenever a coverage launch terminates a coverage session is automatically created. While there can be a list of coverage sessions, at most one session can be the active session which is used to provide coverage summaries for Java elements and source code highlighting. Coverage Analysis
As soon as a coverage session becomes active the corresponding execution data
is processed and analyzed against the classes in the workspace. Coverage
information is described by a Editor HighlightingThe EclEmma UI plug-in tracks the currently opened Java editors and piggybacks a specialized annotation model to the editors' annotation model. |
Copyright © 2006, 2017 Mountainminds GmbH & Co. KG and Contributors | Validate XHTML/CSS · Last Modified 2017-03-28 in Commit 1ce487ba |