com.ullink.gradle:gradle-opencover-plugin

gradle-opencover-plugin is a Gradle plugin for getting code coverage using OpenCover

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.ullink.gradle
ArtifactId

ArtifactId

gradle-opencover-plugin
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

com.ullink.gradle:gradle-opencover-plugin
gradle-opencover-plugin is a Gradle plugin for getting code coverage using OpenCover
Project URL

Project URL

https://github.com/Ullink/gradle-opencover-plugin
Source Code Management

Source Code Management

https://github.com/Ullink/gradle-opencover-plugin.git

Download gradle-opencover-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.ullink.gradle/gradle-opencover-plugin/ -->
<dependency>
    <groupId>com.ullink.gradle</groupId>
    <artifactId>gradle-opencover-plugin</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.ullink.gradle/gradle-opencover-plugin/
implementation 'com.ullink.gradle:gradle-opencover-plugin:1.3'
// https://jarcasting.com/artifacts/com.ullink.gradle/gradle-opencover-plugin/
implementation ("com.ullink.gradle:gradle-opencover-plugin:1.3")
'com.ullink.gradle:gradle-opencover-plugin:jar:1.3'
<dependency org="com.ullink.gradle" name="gradle-opencover-plugin" rev="1.3">
  <artifact name="gradle-opencover-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ullink.gradle', module='gradle-opencover-plugin', version='1.3')
)
libraryDependencies += "com.ullink.gradle" % "gradle-opencover-plugin" % "1.3"
[com.ullink.gradle/gradle-opencover-plugin "1.3"]

Dependencies

runtime (1)

Group / Artifact Type Version
org.apache.commons : commons-io jar 1.3.2

Project Modules

There are no modules declared in this project.

gradle-opencover-plugin Build status Build Status GitHub license

A gradle plugin for getting test coverage using OpenCover

opencover plugin

A base plugin 'com.ullink.opencover' is provided. It will sets up a task named 'opencover' that when called will execute the OpenCover.exe file of the associated OpenCover version. That task may be configured:

opencover {
    // optional - defaults to '4.6.519'
    openCoverVersion
    // optional - defaults to OPENCOVER_HOME env variable if set or to a downloaded opencover home corresponding to
    // the specified openCoverVersion
    openCoverHome
    // mandatory - specifies the test runner executable path (ie 'nunit-console.exe')
    targetExec
    // mandatory - specifies the test runner arguments (associated 'nunit-console.exe' parameters)
    targetExecArgs
    // mandatory - assemblies to obtain test coverage for
    targetAssemblies
    // optional - defaults to TRUE. OpenCover will return the return code of the test runner executable.
    returnTargetCode
    // optional - defaults to FALSE. Determines the behavior of the task if OpenCover's return code is abnormal
    ignoreFailures
    // optional - defaults to user. Specifies opencover's profile register mode (user, path32, path64, null). More details in https://github.com/OpenCover/opencover/wiki/Usage
    registerMode
    // optional - Exclude a class (or methods) by filter(s) that match the filenames
    // More details in https://github.com/OpenCover/opencover/wiki/Usage
    excludeByFile
    // optional - Exclude a class or method by filter(s) that match attributes that have been applied.
    // More details in https://github.com/OpenCover/opencover/wiki/Usage
    excludeByAttribute
    // optional - defaults to FALSE. Neither track nor record auto-implemented properties.
    skipAutoProps
    // optional - Remove information from output file that relates to classes/modules that have been skipped.
    // Possible values: File;Filter;Attribute;MissingPdb;All
    hideSkipped
}

#opencover-nunit plugin

An NUnit ready plugin is also provided: 'com.ullink.opencover-nunit'. It relies on the gradle-nunit-plugin 'nunit' task to configure the 'opencover' task. Using it, provided the default values suit you, the only setup you'll need is

opencover {
    targetAssemblies = ...
}

License

All these plugins are licensed under the Apache License, Version 2.0 with no warranty (expressed or implied) for any purpose.

com.ullink.gradle

Itiviti

Follow us on our new Github! https://github.com/Itiviti

Versions

Version
1.3
1.1
1.0