diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..a72b8a2 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,42 @@ +# ========================================================================= +# COVERAGE CONFIGURATION FILE: .coveragerc +# ========================================================================= +# LANGUAGE: Python +# SEE ALSO: +# * http://nedbatchelder.com/code/coverage/ +# * http://nedbatchelder.com/code/coverage/config.html +# ========================================================================= + +[run] +append = .coverage +include = ctf_cli* +omit = nose +branch = True +#parallel = True + +[report] +# Regexes for lines to exclude from consideration +exclude_lines = + # Have to re-enable the standard pragma + pragma: no cover + + # Don't complain about missing debug-only code: + def __repr__ + if self\.debug + + # Don't complain if tests don't hit defensive assertion code: + raise AssertionError + raise NotImplementedError + + # Don't complain if non-runnable code isn't run: + if 0: + if False: + if __name__ == .__main__.: + +ignore_errors = True + +[html] +directory = coverage.html + +[xml] +outfile = coverage.xml diff --git a/README.md b/README.md index 426d7dc..77d82e6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Containers Testing Framework CLI [![Join the chat at https://gitter.im/Containers-Testing-Framework/ctf-cli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Containers-Testing-Framework/ctf-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Code Health](https://landscape.io/github/Containers-Testing-Framework/ctf-cli/master/landscape.svg?style=flat)](https://landscape.io/github/Containers-Testing-Framework/ctf-cli/master) +[![Code Health](https://landscape.io/github/Containers-Testing-Framework/ctf-cli/master/landscape.svg?style=flat)](https://landscape.io/github/Containers-Testing-Framework/ctf-cli/master)[![Coverage Status](https://coveralls.io/repos/vrutkovs/ctf-cli/badge.svg?branch=ci)](https://coveralls.io/r/vrutkovs/ctf-cli?branch=ci) Containers Testing Framework (CTF) is a simple wrapper around [Behave testing framework](http://pythonhosted.org/behave/). Behave is a promising approach for testing containers, since it enables one to focus on describing the behavior of the container from a High Level and in simple English. For more information on how to use Behave and how to write tests using Behave, please refer to the Behave project page.