Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Atlassian Clover #36

Open
louiszuckerman opened this issue Mar 21, 2014 · 7 comments
Open

Support for Atlassian Clover #36

louiszuckerman opened this issue Mar 21, 2014 · 7 comments
Labels

Comments

@louiszuckerman
Copy link

My project, glusterfs-java-filesystem, makes heavy use of PowerMock. As a result, Clover is the only coverage analyzer that works properly. I'd like to send reports to Coveralls and put their status image in my README.

Please consider adding support for Atlassian Clover (https://www.atlassian.com/software/clover).

Thank you in advance.

@trautonen
Copy link
Owner

Is this still relevant? I haven't added support to Clover due to the fact that the tool is not free. I could ask Atlassian if I can use it for free to add support for the Coveralls maven plugin.

I could use an example coverage report (XML if possible) from Clover to add the support. Could you create a small example with Clover and add it to this issue so I can create a parser for it.

@louiszuckerman
Copy link
Author

Yes, still relevant. And Atlassian gives free licenses for open source projects.

I'll post a sample report later today.

Thanks!

@louiszuckerman
Copy link
Author

Sorry for the huge delay but here finally is a sample XML report from Clover. I'm not sure if it's a good example, so let me know if you need more.

https://www.dropbox.com/s/cio2la6p00e5b24/clover.xml?dl=0

Regards,

-louis

trautonen added a commit that referenced this issue Sep 26, 2014
@trautonen trautonen added this to the v3.1.0 milestone Oct 11, 2014
@trautonen trautonen modified the milestones: v3.2.0, v3.1.0 Mar 18, 2015
@trautonen trautonen modified the milestone: v3.2.0 Aug 19, 2015
@akshaisarma
Copy link

The v3.2.0 milestone has been released. Which version is this being planned for? I would love to have this supported.

@ChristianMurphy
Copy link

Clover has release as open souce https://www.atlassian.com/blog/announcements/atlassian-clover-open-source
New documentation home: http://openclover.org

@lhazlewood
Copy link

#120 is an open PR for this that we've been using for quite a long time as a custom build. Can this please be merged and made official (and released) so we can stop using our custom artifacts?

In the meantime, in case anyone needs this right now, our custom artifact is currently hosted on bintray. You can access it in your maven projects as follows:

Put this in your pom.xml as an direct child somewhere under the <project> element:

<!-- Begin temporary repos until official release of coverall-maven-plugin with clover support -->
<repositories>
    <repository>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <id>bintray-jwtk-coveralls-maven-plugin</id>
        <name>bintray</name>
        <url>https://dl.bintray.com/jwtk/coveralls-maven-plugin</url>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <id>bintray-jwtk-coveralls-maven-plugin</id>
        <name>bintray-plugins</name>
        <url>https://dl.bintray.com/jwtk/coveralls-maven-plugin</url>
    </pluginRepository>
</pluginRepositories>
<!-- End temporary repos until official release of coverall-maven-plugin with clover support -->

And then declare in your <build><plugins> section:

<plugin>
    <groupId>org.openclover</groupId>
    <artifactId>clover-maven-plugin</artifactId>
    <version>4.2.1</version>
    <configuration>
        <excludes>
            <!-- We don't care about coverage for test code itself: -->
            <exclude>**/*Test</exclude>
        </excludes>
        <methodPercentage>100%</methodPercentage>
        <statementPercentage>100%</statementPercentage>
        <conditionalPercentage>100%</conditionalPercentage>
        <targetPercentage>100%</targetPercentage>
    </configuration>
    <executions>
        <execution>
            <id>clover</id>
            <phase>test</phase>
            <goals>
                <goal>instrument</goal>
                <goal>check</goal>
                <goal>clover</goal>
            </goals>
        </execution>
    </executions>
</plugin>
<!-- Temporary until official release of coverall-maven-plugin with clover support: -->
<plugin>
    <groupId>org.jwtk.coveralls</groupId>
    <artifactId>coveralls-maven-plugin</artifactId>
    <version>4.4.0</version>
</plugin>

@etki
Copy link

etki commented Sep 16, 2018

Please please please consider @lhazlewood comment above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants