Skip to content

AlexeySanko/pybuilder_pytest_coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyBuilder Pytest Coverage Plugin Build Status

Add pytest-cov for coverage measure for pybuilder_pytest plugin

How to use pybuilder_pytest_coverage

If You use pybuilder_pytest_coverage do not forget to disable PyBuilder coverage plugin, for avoiding unexpected results or exception:

use_plugin("python.coverage")

Add plugin dependency to your build.py and configure the plugin within your init function:

use_plugin('pypi:pybuilder_pytest_coverage')

@init
def set_properties(project):
    project.set_property_if_unset("pytest_coverage_break_build_threshold", 50)

Properties

Plugin has next properties with provided defaults

Name Type Default Value Description
pytest_coverage_skip_covered bool False Skip fully covered modules into console output
pytest_coverage_xml bool False Export coverage result to XML report file
pytest_coverage_html bool False Export coverage result to HTML
pytest_coverage_annotate bool False Export coverage result to annonate
pytest_coverage_break_build_threshold integer 0 Break build if coverage less then threshold. Note that coverage include branch coverage

About

Pytest Coverage plugin for PyBuilder Pytest plugin: https://github.com/AlexeySanko/pybuilder_pytest

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages