Report2Image

Maven plugin for converting html reports into a single image file

License

License

GroupId

GroupId

de.eleon
ArtifactId

ArtifactId

report2image
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Report2Image
Maven plugin for converting html reports into a single image file
Project URL

Project URL

https://github.com/dfoerderreuther/report2image
Source Code Management

Source Code Management

https://github.com/dfoerderreuther/report2image

Download report2image

How to add to project

<plugin>
    <groupId>de.eleon</groupId>
    <artifactId>report2image</artifactId>
    <version>1.0</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.xhtmlrenderer : flying-saucer-core jar 9.0.6
org.apache.maven : maven-plugin-api jar 3.2.2
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3
com.google.guava : guava jar 17.0

test (5)

Group / Artifact Type Version
junit : junit jar 4.11
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-all jar 1.9.5
org.powermock : powermock-module-junit4 jar 1.5.5
org.powermock : powermock-api-mockito jar 1.5.5

Project Modules

There are no modules declared in this project.

Report2Image

Report2Image is a maven plugin to convert a html report into a single image. It can be used to display the reported test coverage at drone.io, for example.

Example usage in pom.xml with jacoco

The following pom settings create a jacoco coverage report and converts the index-page of the report into a png.

Jacoco configuration

<plugin>
    <groupId>org.jacoco</groupId>
    <artifactId>jacoco-maven-plugin</artifactId>
    <version>0.7.1.201405082137</version>
    <executions>
        <execution>
            <id>jacoco-initialize</id>
            <goals>
                <goal>prepare-agent</goal>
            </goals>
        </execution>
        <execution>
            <id>jacoco-integration</id>
            <phase>prepare-package</phase>
            <goals>
                <goal>report</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Report2Image configuration

<plugin>
    <groupId>de.eleon</groupId>
    <artifactId>report2image</artifactId>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>report2image</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <reports>
            <report>
                <html>target/site/jacoco/index.html</html>
                <image>target/jacoco.png</image>
            </report>
            <!-- ... -->
        </reports>
    </configuration>
</plugin>

Versions

Version
1.0