Thinking OPEN

Cobertura Licensing Case Study

By Content Team • Aug 1st, 2008 • Category: Open Source Licensing

Project Description

Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It is based on jcoverage. Some of its main features include:

  • Executable from Ant or from the command line.
  • Instruments byte code after compilation.
  • Generates reports in both HTML and XML.
  • Shows the percentage of lines and branches covered for each class, each package, and for the project.
  • Shows the McCage cyclomatic code complexity for each class, the average code complexity for each packet, and the average cyclomatic code complexity for the project.
  • Provides sorting of HTML results by class name, percentage of lines covered, and more.

Use Cobertura to identify which parts of a Java code base are lacking test coverage.

License Issue

This project is dual licensed under the Apache 1.1 and GPL V2 licenses.

The Ant tasks are licensed under the Apache 1.1 license. Because the Ant tasks are loaded directly into the runtime of Ant, and the GPL is incompatible with all versions of the Apache license, Ant tasks can’t be licensed under the GPL.

The rest of Cobertura is under the GPL because Cobertura is a fork of the GPL version of JCoverage. The terms of the GPL require that forks – or any other project based on a GPL licensed project – also use the GPL license.

Additionally, because use of Cobertura modifies JCoverage code, there are other license implications.

Resolution

We added a special note to the Cobertura package details page in OLEX explaining the situation and pointing users directly to all of the relevant information available on the community website.

Related OLEX Packages: cobertura
Content Team

Content Team
The content team. Where to begin? On three continents, we write metadata, research licenses, create custom builds, handle certifications and implementations before lunch, and without whining. We organize and edit all the nifty, informative articles on Wazi, too. Between us we own one horse, 10 dogs, 3 cats, a coupla geckos and just under a half-dozen fish. None of them are allowed in the conference room while we're busy maintaining the edge that is OLEX Open Source Content Development.
All posts by Content Team

Leave a Reply