Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aybabtme/couverture

Automagically improve your test coverage !!!
https://github.com/aybabtme/couverture

Last synced: about 1 month ago
JSON representation

Automagically improve your test coverage !!!

Awesome Lists containing this project

README

        

# Couverture
Automagically improve the test coverage of your projects!

## Status
It's not quite complete. The sample is not working.

## Usage
It's trivial!

```java
// Run this then look at the coverage report!
@Test
public void coverAllTheThings() {
String packageName = MyPojoWithCoverage.class.getPackage().getName();
try {
Couverture couverture = new Couverture(packageName);
couverture.bumpThatCoverage();
} catch (VictimlessPackageException e) {
// Oh noes!! That's not a package, or perhaps it's empty!
}
}
```

And now, sit back and enjoy the improvement in code coverage!

##Sample
Look at the `sample` folder. Use Ant to build the sample and generate the Cobertura reports.

```bash
ant ./sample/
```

## Development

```bash
mvn clean compile assembly:single // to build the jar with its dependencies
```