Skip to content

Commit 5f1e526

Browse files
committed
Merge pull request #38 from vrutkovs/coveralls
Fix coverage collection and add a coveralls badge
2 parents c0a6dff + b21f999 commit 5f1e526

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.coveragerc

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# =========================================================================
2+
# COVERAGE CONFIGURATION FILE: .coveragerc
3+
# =========================================================================
4+
# LANGUAGE: Python
5+
# SEE ALSO:
6+
# * http://nedbatchelder.com/code/coverage/
7+
# * http://nedbatchelder.com/code/coverage/config.html
8+
# =========================================================================
9+
10+
[run]
11+
append = .coverage
12+
include = ctf_cli*
13+
omit = nose
14+
branch = True
15+
#parallel = True
16+
17+
[report]
18+
# Regexes for lines to exclude from consideration
19+
exclude_lines =
20+
# Have to re-enable the standard pragma
21+
pragma: no cover
22+
23+
# Don't complain about missing debug-only code:
24+
def __repr__
25+
if self\.debug
26+
27+
# Don't complain if tests don't hit defensive assertion code:
28+
raise AssertionError
29+
raise NotImplementedError
30+
31+
# Don't complain if non-runnable code isn't run:
32+
if 0:
33+
if False:
34+
if __name__ == .__main__.:
35+
36+
ignore_errors = True
37+
38+
[html]
39+
directory = coverage.html
40+
41+
[xml]
42+
outfile = coverage.xml

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Containers Testing Framework CLI
22

33
[![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)
4-
[![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)
4+
[![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)
55

66
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.
77

0 commit comments

Comments
 (0)