• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Itiviti/gradle-opencover-plugin: A gradle plugin for getting test coverage using ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Itiviti/gradle-opencover-plugin

开源软件地址(OpenSource Url):

https://github.com/Itiviti/gradle-opencover-plugin

开源编程语言(OpenSource Language):

Groovy 100.0%

开源软件介绍(OpenSource Introduction):

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.7.1189'
    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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap