Created
January 18, 2016 16:46
-
-
Save agroszer/d4c9329cad10b32d9e34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adi@ebi:/work/shoobx/diff-cover $ tox -e py27 | |
GLOB sdist-make: /work/shoobx/diff-cover/setup.py | |
py27 create: /work/shoobx/diff-cover/.tox/py27 | |
py27 installdeps: -r/work/shoobx/diff-cover/requirements/test-requirements-py27-py3.txt | |
py27 inst: /work/shoobx/diff-cover/.tox/dist/diff_cover-0.8.6.zip | |
py27 installed: astroid==1.4.4,colorama==0.3.6,coverage==4.0.3,diff-cover==0.8.6,flake8==2.5.1,funcsigs==0.4,inflect==0.2.5,Jinja2==2.8,jinja2-pluralize==0.3.0,lazy-object-proxy==1.2.1,MarkupSafe==0.23,mccabe==0.3.1,mock==1.3.0,nose==1.3.7,pbr==1.8.1,pep8==1.7.0,pyflakes==1.0.0,Pygments==2.1,pylint==1.5.4,six==1.10.0,stevedore==1.9.0,wheel==0.24.0,wrapt==1.10.6 | |
py27 runtests: PYTHONHASHSEED='3029816033' | |
py27 runtests: commands[0] | coverage run -m nose | |
.......usage: python2.7 -m nose [-h] --violations VIOLATIONS | |
[--html-report HTML_REPORT] | |
[--compare-branch COMPARE_BRANCH] | |
[--options [OPTIONS]] [--fail-under FAIL_UNDER] | |
[--ignore-unstaged] | |
[input_reports [input_reports ...]] | |
python2.7 -m nose: error: argument --violations is required | |
usage: python2.7 -m nose [-h] --violations VIOLATIONS | |
[--html-report HTML_REPORT] | |
[--compare-branch COMPARE_BRANCH] | |
[--options [OPTIONS]] [--fail-under FAIL_UNDER] | |
[--ignore-unstaged] | |
[input_reports [input_reports ...]] | |
python2.7 -m nose: error: argument --violations is required | |
.......................................F.F.F..F.F...F.F.F.F..F.F.F..F.F................................................................................................. | |
====================================================================== | |
FAIL: test_added_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 170, in test_added_file_html | |
['diff-cover', 'coverage.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 10 lines</li> | |
<li><b>Missing</b>: 5 lines</li> | |
<li><b>Coverage</b>: 50%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>test_src.txt</td> | |
<td>50.0%</td> | |
<td>2,4,6,8,10</td> | |
</tr> | |
</table> | |
<div class="src-snippet"> | |
<div class="src-name">test_src.txt</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10</pre></div></td><td class="code"><div class="snippet"><pre><a name="test_src.txt-1"></a>test 1 | |
<a name="test_src.txt-2"></a><span class="hll">test 2 | |
</span><a name="test_src.txt-3"></a>test 3 | |
<a name="test_src.txt-4"></a><span class="hll">test 4 | |
</span><a name="test_src.txt-5"></a>test 5 | |
<a name="test_src.txt-6"></a><span class="hll">test 6 | |
</span><a name="test_src.txt-7"></a>test 7 | |
<a name="test_src.txt-8"></a><span class="hll">test 8 | |
</span><a name="test_src.txt-9"></a>test 9 | |
<a name="test_src.txt-10"></a><span class="hll">test 10 | |
</span></pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_changed_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 225, in test_changed_file_html | |
['diff-cover', 'coverage.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 1 line</li> | |
<li><b>Missing</b>: 0 lines</li> | |
<li><b>Coverage</b>: 100%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>test_src.txt</td> | |
<td>100%</td> | |
<td> </td> | |
</tr> | |
</table> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_deleted_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 211, in test_deleted_file_html | |
['diff-cover', 'coverage.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<p>No lines with coverage information in this diff.</p> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_fail_under_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 233, in test_fail_under_html | |
expected_status=1 | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 1 line</li> | |
<li><b>Missing</b>: 0 lines</li> | |
<li><b>Coverage</b>: 100%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>test_src.txt</td> | |
<td>100%</td> | |
<td> </td> | |
</tr> | |
</table> | |
</body> | |
</html> | |
-------------------- >> begin captured logging << -------------------- | |
diff_cover.tool: ERROR: Failure. Coverage is below 100.1%. | |
--------------------- >> end captured logging << --------------------- | |
====================================================================== | |
FAIL: test_fail_under_pass_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 241, in test_fail_under_pass_html | |
expected_status=0 | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 1 line</li> | |
<li><b>Missing</b>: 0 lines</li> | |
<li><b>Coverage</b>: 100%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>test_src.txt</td> | |
<td>100%</td> | |
<td> </td> | |
</tr> | |
</table> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_moved_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 255, in test_moved_file_html | |
['diff-cover', 'moved_coverage.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 10 lines</li> | |
<li><b>Missing</b>: 5 lines</li> | |
<li><b>Coverage</b>: 50%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>test_src.txt</td> | |
<td>50.0%</td> | |
<td>2,4,6,8,10</td> | |
</tr> | |
</table> | |
<div class="src-snippet"> | |
<div class="src-name">test_src.txt</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10</pre></div></td><td class="code"><div class="snippet"><pre><a name="test_src.txt-1"></a>test 1 | |
<a name="test_src.txt-2"></a><span class="hll">test 2 | |
</span><a name="test_src.txt-3"></a>test 3 | |
<a name="test_src.txt-4"></a><span class="hll">test 4 | |
</span><a name="test_src.txt-5"></a>test 5 | |
<a name="test_src.txt-6"></a><span class="hll">test 6 | |
</span><a name="test_src.txt-7"></a>test 7 | |
<a name="test_src.txt-8"></a><span class="hll">test 8 | |
</span><a name="test_src.txt-9"></a>test 9 | |
<a name="test_src.txt-10"></a><span class="hll">test 10 | |
</span></pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_mult_inputs_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 269, in test_mult_inputs_html | |
['diff-cover', 'coverage1.xml', 'coverage2.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 10 lines</li> | |
<li><b>Missing</b>: 4 lines</li> | |
<li><b>Coverage</b>: 60%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>test_src.txt</td> | |
<td>60.0%</td> | |
<td>4,6,8,10</td> | |
</tr> | |
</table> | |
<div class="src-snippet"> | |
<div class="src-name">test_src.txt</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10</pre></div></td><td class="code"><div class="snippet"><pre><a name="test_src.txt-1"></a>test 1 | |
<a name="test_src.txt-2"></a>test 2 | |
<a name="test_src.txt-3"></a>test 3 | |
<a name="test_src.txt-4"></a><span class="hll">test 4 | |
</span><a name="test_src.txt-5"></a>test 5 | |
<a name="test_src.txt-6"></a><span class="hll">test 6 | |
</span><a name="test_src.txt-7"></a>test 7 | |
<a name="test_src.txt-8"></a><span class="hll">test 8 | |
</span><a name="test_src.txt-9"></a>test 9 | |
<a name="test_src.txt-10"></a><span class="hll">test 10 | |
</span></pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: Assert that when diff-cover is ran from a subdirectory it | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 289, in test_subdir_coverage_html | |
['diff-cover', 'coverage.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 10 lines</li> | |
<li><b>Missing</b>: 5 lines</li> | |
<li><b>Coverage</b>: 50%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>sub/test_src.txt</td> | |
<td>50.0%</td> | |
<td>2,4,6,8,10</td> | |
</tr> | |
</table> | |
<div class="src-snippet"> | |
<div class="src-name">sub/test_src.txt</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10</pre></div></td><td class="code"><div class="snippet"><pre><a name="sub/test_src.txt-1"></a>test 1 | |
<a name="sub/test_src.txt-2"></a><span class="hll">test 2 | |
</span><a name="sub/test_src.txt-3"></a>test 3 | |
<a name="sub/test_src.txt-4"></a><span class="hll">test 4 | |
</span><a name="sub/test_src.txt-5"></a>test 5 | |
<a name="sub/test_src.txt-6"></a><span class="hll">test 6 | |
</span><a name="sub/test_src.txt-7"></a>test 7 | |
<a name="sub/test_src.txt-8"></a><span class="hll">test 8 | |
</span><a name="sub/test_src.txt-9"></a>test 9 | |
<a name="sub/test_src.txt-10"></a><span class="hll">test 10 | |
</span></pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_unicode_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 328, in test_unicode_html | |
['diff-cover', 'unicode_coverage.xml'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Coverage</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Coverage</h1> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<ul> | |
<li><b>Total</b>: 10 lines</li> | |
<li><b>Missing</b>: 5 lines</li> | |
<li><b>Coverage</b>: 50%</li> | |
</ul> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Coverage (%)</th> | |
<th>Missing Lines</th> | |
</tr> | |
<tr> | |
<td>unicode_test_src.txt</td> | |
<td>50.0%</td> | |
<td>2,4,6,8,10</td> | |
</tr> | |
</table> | |
<div class="src-snippet"> | |
<div class="src-name">unicode_test_src.txt</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10</pre></div></td><td class="code"><div class="snippet"><pre><a name="unicode_test_src.txt-1"></a>\u1e97\xeb\u1e61\u1e97 1 | |
<a name="unicode_test_src.txt-2"></a><span class="hll">\u1e97\xeb\u1e61\u1e97 2 | |
</span><a name="unicode_test_src.txt-3"></a>\u1e97\xeb\u1e61\u1e97 3 | |
<a name="unicode_test_src.txt-4"></a><span class="hll">\u1e97\xeb\u1e61\u1e97 4 | |
</span><a name="unicode_test_src.txt-5"></a>\u1e97\xeb\u1e61\u1e97 5 | |
<a name="unicode_test_src.txt-6"></a><span class="hll">\u1e97\xeb\u1e61\u1e97 6 | |
</span><a name="unicode_test_src.txt-7"></a>\u1e97\xeb\u1e61\u1e97 7 | |
<a name="unicode_test_src.txt-8"></a><span class="hll">\u1e97\xeb\u1e61\u1e97 8 | |
</span><a name="unicode_test_src.txt-9"></a>\u1e97\xeb\u1e61\u1e97 9 | |
<a name="unicode_test_src.txt-10"></a><span class="hll">\u1e97\xeb\u1e61\u1e97 10 | |
</span></pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_added_file_pep8_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 359, in test_added_file_pep8_html | |
['diff-quality', '--violations=pep8'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Quality</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Quality</h1> | |
<p>Quality Report: pep8</p> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Quality (%)</th> | |
<th>Lines in violation</th> | |
</tr> | |
<tr> | |
<td>violations_test_file.py</td> | |
<td>66.7%</td> | |
<td> | |
<ul> | |
<li>2: E225 missing whitespace around operator</li> | |
<li>6: E302 expected 2 blank lines, found 0</li> | |
<li>11: E225 missing whitespace around operator</li> | |
</ul> | |
</td> | |
</tr> | |
</table> | |
<ul> | |
<li><b>Total</b>: 9 lines</li> | |
<li><b>Violation</b>: 3 lines</li> | |
<li><b>% Quality</b>: 66%</li> | |
</ul> | |
<div class="src-snippet"> | |
<div class="src-name">violations_test_file.py</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-1"></a><span class="k">def</span> <span class="nf">func_1</span><span class="p">(</span><span class="n">apple</span><span class="p">,</span> <span class="n">my_list</span><span class="p">):</span> | |
<a name="violations_test_file.py-2"></a><span class="hll"> <span class="k">if</span> <span class="n">apple</span><span class="o"><</span><span class="mi">10</span><span class="p">:</span> | |
- </span><a name="violations_test_file.py-3"></a> <span class="c"># Do something </span> | |
+ </span><a name="violations_test_file.py-3"></a> <span class="c1"># Do something </span> | |
? + | |
<a name="violations_test_file.py-4"></a> <span class="n">my_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">apple</span><span class="p">)</span> | |
<a name="violations_test_file.py-5"></a> <span class="k">return</span> <span class="n">my_list</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> | |
<a name="violations_test_file.py-6"></a><span class="hll"><span class="k">def</span> <span class="nf">func_2</span><span class="p">(</span><span class="n">spongebob</span><span class="p">,</span> <span class="n">squarepants</span><span class="p">):</span> | |
</span><a name="violations_test_file.py-7"></a> <span class="sd">"""A less messy function"""</span> | |
<a name="violations_test_file.py-8"></a> <span class="k">for</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">spongebob</span><span class="p">:</span> | |
<a name="violations_test_file.py-9"></a> <span class="k">if</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">squarepants</span><span class="p">:</span> | |
<a name="violations_test_file.py-10"></a> <span class="k">return</span> <span class="n">char</span> | |
<a name="violations_test_file.py-11"></a><span class="hll"> <span class="n">unused</span><span class="o">=</span><span class="mi">1</span> | |
</span><a name="violations_test_file.py-12"></a> <span class="k">return</span> <span class="bp">None</span> | |
</pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_added_file_pyflakes_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 366, in test_added_file_pyflakes_html | |
['diff-quality', '--violations=pyflakes'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Quality</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Quality</h1> | |
<p>Quality Report: pyflakes</p> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Quality (%)</th> | |
<th>Lines in violation</th> | |
</tr> | |
<tr> | |
<td>violations_test_file.py</td> | |
<td>88.9%</td> | |
<td> | |
<ul> | |
<li>11: local variable 'unused' is assigned to but never used</li> | |
</ul> | |
</td> | |
</tr> | |
</table> | |
<ul> | |
<li><b>Total</b>: 9 lines</li> | |
<li><b>Violation</b>: 1 line</li> | |
<li><b>% Quality</b>: 88%</li> | |
</ul> | |
<div class="src-snippet"> | |
<div class="src-name">violations_test_file.py</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 7 | |
8 | |
9 | |
10 | |
11 | |
12</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-7"></a> <span class="sd">"""A less messy function"""</span> | |
<a name="violations_test_file.py-8"></a> <span class="k">for</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">spongebob</span><span class="p">:</span> | |
<a name="violations_test_file.py-9"></a> <span class="k">if</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">squarepants</span><span class="p">:</span> | |
<a name="violations_test_file.py-10"></a> <span class="k">return</span> <span class="n">char</span> | |
<a name="violations_test_file.py-11"></a><span class="hll"> <span class="n">unused</span><span class="o">=</span><span class="mi">1</span> | |
</span><a name="violations_test_file.py-12"></a> <span class="k">return</span> <span class="bp">None</span> | |
</pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_added_file_pylint_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 373, in test_added_file_pylint_html | |
['diff-quality', '--violations=pylint'] | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Quality</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Quality</h1> | |
<p>Quality Report: pylint</p> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Quality (%)</th> | |
<th>Lines in violation</th> | |
</tr> | |
<tr> | |
<td>violations_test_file.py</td> | |
<td>66.7%</td> | |
<td> | |
<ul> | |
<li>1: C0111: (missing-docstring), : Missing module docstring</li> | |
<li>1: C0111: (missing-docstring), func_1: Missing function docstring</li> | |
<li>2: C0326: (bad-whitespace), : Exactly one space required around comparison</li> | |
<li>11: C0326: (bad-whitespace), : Exactly one space required around assignment</li> | |
<li>11: W0612: (unused-variable), func_2: Unused variable 'unused'</li> | |
</ul> | |
</td> | |
</tr> | |
</table> | |
<ul> | |
<li><b>Total</b>: 9 lines</li> | |
<li><b>Violation</b>: 3 lines</li> | |
<li><b>% Quality</b>: 66%</li> | |
</ul> | |
<div class="src-snippet"> | |
<div class="src-name">violations_test_file.py</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre>1 | |
2 | |
3 | |
4 | |
5 | |
6</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-1"></a><span class="hll"><span class="k">def</span> <span class="nf">func_1</span><span class="p">(</span><span class="n">apple</span><span class="p">,</span> <span class="n">my_list</span><span class="p">):</span> | |
</span><a name="violations_test_file.py-2"></a><span class="hll"> <span class="k">if</span> <span class="n">apple</span><span class="o"><</span><span class="mi">10</span><span class="p">:</span> | |
- </span><a name="violations_test_file.py-3"></a> <span class="c"># Do something </span> | |
+ </span><a name="violations_test_file.py-3"></a> <span class="c1"># Do something </span> | |
? + | |
<a name="violations_test_file.py-4"></a> <span class="n">my_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">apple</span><span class="p">)</span> | |
<a name="violations_test_file.py-5"></a> <span class="k">return</span> <span class="n">my_list</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> | |
<a name="violations_test_file.py-6"></a><span class="k">def</span> <span class="nf">func_2</span><span class="p">(</span><span class="n">spongebob</span><span class="p">,</span> <span class="n">squarepants</span><span class="p">):</span> | |
</pre></div> | |
</td></tr></table> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 7 | |
8 | |
9 | |
10 | |
11 | |
12</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-7"></a> <span class="sd">"""A less messy function"""</span> | |
<a name="violations_test_file.py-8"></a> <span class="k">for</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">spongebob</span><span class="p">:</span> | |
<a name="violations_test_file.py-9"></a> <span class="k">if</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">squarepants</span><span class="p">:</span> | |
<a name="violations_test_file.py-10"></a> <span class="k">return</span> <span class="n">char</span> | |
<a name="violations_test_file.py-11"></a><span class="hll"> <span class="n">unused</span><span class="o">=</span><span class="mi">1</span> | |
</span><a name="violations_test_file.py-12"></a> <span class="k">return</span> <span class="bp">None</span> | |
</pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
====================================================================== | |
FAIL: test_fail_under_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 381, in test_fail_under_html | |
expected_status=1 | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Quality</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Quality</h1> | |
<p>Quality Report: pylint</p> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Quality (%)</th> | |
<th>Lines in violation</th> | |
</tr> | |
<tr> | |
<td>violations_test_file.py</td> | |
<td>66.7%</td> | |
<td> | |
<ul> | |
<li>1: C0111: (missing-docstring), : Missing module docstring</li> | |
<li>1: C0111: (missing-docstring), func_1: Missing function docstring</li> | |
<li>2: C0326: (bad-whitespace), : Exactly one space required around comparison</li> | |
<li>11: C0326: (bad-whitespace), : Exactly one space required around assignment</li> | |
<li>11: W0612: (unused-variable), func_2: Unused variable 'unused'</li> | |
</ul> | |
</td> | |
</tr> | |
</table> | |
<ul> | |
<li><b>Total</b>: 9 lines</li> | |
<li><b>Violation</b>: 3 lines</li> | |
<li><b>% Quality</b>: 66%</li> | |
</ul> | |
<div class="src-snippet"> | |
<div class="src-name">violations_test_file.py</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre>1 | |
2 | |
3 | |
4 | |
5 | |
6</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-1"></a><span class="hll"><span class="k">def</span> <span class="nf">func_1</span><span class="p">(</span><span class="n">apple</span><span class="p">,</span> <span class="n">my_list</span><span class="p">):</span> | |
</span><a name="violations_test_file.py-2"></a><span class="hll"> <span class="k">if</span> <span class="n">apple</span><span class="o"><</span><span class="mi">10</span><span class="p">:</span> | |
- </span><a name="violations_test_file.py-3"></a> <span class="c"># Do something </span> | |
+ </span><a name="violations_test_file.py-3"></a> <span class="c1"># Do something </span> | |
? + | |
<a name="violations_test_file.py-4"></a> <span class="n">my_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">apple</span><span class="p">)</span> | |
<a name="violations_test_file.py-5"></a> <span class="k">return</span> <span class="n">my_list</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> | |
<a name="violations_test_file.py-6"></a><span class="k">def</span> <span class="nf">func_2</span><span class="p">(</span><span class="n">spongebob</span><span class="p">,</span> <span class="n">squarepants</span><span class="p">):</span> | |
</pre></div> | |
</td></tr></table> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 7 | |
8 | |
9 | |
10 | |
11 | |
12</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-7"></a> <span class="sd">"""A less messy function"""</span> | |
<a name="violations_test_file.py-8"></a> <span class="k">for</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">spongebob</span><span class="p">:</span> | |
<a name="violations_test_file.py-9"></a> <span class="k">if</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">squarepants</span><span class="p">:</span> | |
<a name="violations_test_file.py-10"></a> <span class="k">return</span> <span class="n">char</span> | |
<a name="violations_test_file.py-11"></a><span class="hll"> <span class="n">unused</span><span class="o">=</span><span class="mi">1</span> | |
</span><a name="violations_test_file.py-12"></a> <span class="k">return</span> <span class="bp">None</span> | |
</pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
-------------------- >> begin captured logging << -------------------- | |
diff_cover.tool: ERROR: Failure. Quality is below 70.0%. | |
--------------------- >> end captured logging << --------------------- | |
====================================================================== | |
FAIL: test_fail_under_pass_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 389, in test_fail_under_pass_html | |
expected_status=0 | |
File "/work/shoobx/diff-cover/diff_cover/tests/test_integration.py", line 92, in _check_html_report | |
assert_long_str_equal(expected, html, strip=True) | |
File "/work/shoobx/diff-cover/diff_cover/tests/helpers.py", line 50, in assert_long_str_equal | |
ok_(False, '\n\n' + '\n'.join(diff)) | |
AssertionError: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
<title>Diff Quality</title> | |
<style> | |
.src-snippet { margin-top: 2em; } | |
.src-name { font-weight: bold; } | |
.snippets { | |
border-top: 1px solid #bdbdbd; | |
border-bottom: 1px solid #bdbdbd; | |
} | |
.hll { background-color: #ffcccc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
+ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
+ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
.cs { color: #408080; font-style: italic } /* Comment.Special */ | |
.gd { color: #A00000 } /* Generic.Deleted */ | |
.ge { font-style: italic } /* Generic.Emph */ | |
.gr { color: #FF0000 } /* Generic.Error */ | |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
.gi { color: #00A000 } /* Generic.Inserted */ | |
.go { color: #888888 } /* Generic.Output */ | |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
.gs { font-weight: bold } /* Generic.Strong */ | |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
.gt { color: #0044DD } /* Generic.Traceback */ | |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
.kp { color: #008000 } /* Keyword.Pseudo */ | |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
.kt { color: #B00040 } /* Keyword.Type */ | |
.m { color: #666666 } /* Literal.Number */ | |
.s { color: #BA2121 } /* Literal.String */ | |
.na { color: #7D9029 } /* Name.Attribute */ | |
.nb { color: #008000 } /* Name.Builtin */ | |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
.no { color: #880000 } /* Name.Constant */ | |
.nd { color: #AA22FF } /* Name.Decorator */ | |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
.nf { color: #0000FF } /* Name.Function */ | |
.nl { color: #A0A000 } /* Name.Label */ | |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
.nv { color: #19177C } /* Name.Variable */ | |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
.w { color: #bbbbbb } /* Text.Whitespace */ | |
.mb { color: #666666 } /* Literal.Number.Bin */ | |
.mf { color: #666666 } /* Literal.Number.Float */ | |
.mh { color: #666666 } /* Literal.Number.Hex */ | |
.mi { color: #666666 } /* Literal.Number.Integer */ | |
.mo { color: #666666 } /* Literal.Number.Oct */ | |
.sb { color: #BA2121 } /* Literal.String.Backtick */ | |
.sc { color: #BA2121 } /* Literal.String.Char */ | |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
.s2 { color: #BA2121 } /* Literal.String.Double */ | |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
.sx { color: #008000 } /* Literal.String.Other */ | |
.sr { color: #BB6688 } /* Literal.String.Regex */ | |
.s1 { color: #BA2121 } /* Literal.String.Single */ | |
.ss { color: #19177C } /* Literal.String.Symbol */ | |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
.vc { color: #19177C } /* Name.Variable.Class */ | |
.vg { color: #19177C } /* Name.Variable.Global */ | |
.vi { color: #19177C } /* Name.Variable.Instance */ | |
.il { color: #666666 } /* Literal.Number.Integer.Long */ | |
</style> | |
</head> | |
<body> | |
<h1>Diff Quality</h1> | |
<p>Quality Report: pylint</p> | |
<p>Diff: origin/master...HEAD, staged, and unstaged changes</p> | |
<table border="1"> | |
<tr> | |
<th>Source File</th> | |
<th>Diff Quality (%)</th> | |
<th>Lines in violation</th> | |
</tr> | |
<tr> | |
<td>violations_test_file.py</td> | |
<td>66.7%</td> | |
<td> | |
<ul> | |
<li>1: C0111: (missing-docstring), : Missing module docstring</li> | |
<li>1: C0111: (missing-docstring), func_1: Missing function docstring</li> | |
<li>2: C0326: (bad-whitespace), : Exactly one space required around comparison</li> | |
<li>11: C0326: (bad-whitespace), : Exactly one space required around assignment</li> | |
<li>11: W0612: (unused-variable), func_2: Unused variable 'unused'</li> | |
</ul> | |
</td> | |
</tr> | |
</table> | |
<ul> | |
<li><b>Total</b>: 9 lines</li> | |
<li><b>Violation</b>: 3 lines</li> | |
<li><b>% Quality</b>: 66%</li> | |
</ul> | |
<div class="src-snippet"> | |
<div class="src-name">violations_test_file.py</div> | |
<div class="snippets"> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre>1 | |
2 | |
3 | |
4 | |
5 | |
6</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-1"></a><span class="hll"><span class="k">def</span> <span class="nf">func_1</span><span class="p">(</span><span class="n">apple</span><span class="p">,</span> <span class="n">my_list</span><span class="p">):</span> | |
</span><a name="violations_test_file.py-2"></a><span class="hll"> <span class="k">if</span> <span class="n">apple</span><span class="o"><</span><span class="mi">10</span><span class="p">:</span> | |
- </span><a name="violations_test_file.py-3"></a> <span class="c"># Do something </span> | |
+ </span><a name="violations_test_file.py-3"></a> <span class="c1"># Do something </span> | |
? + | |
<a name="violations_test_file.py-4"></a> <span class="n">my_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">apple</span><span class="p">)</span> | |
<a name="violations_test_file.py-5"></a> <span class="k">return</span> <span class="n">my_list</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> | |
<a name="violations_test_file.py-6"></a><span class="k">def</span> <span class="nf">func_2</span><span class="p">(</span><span class="n">spongebob</span><span class="p">,</span> <span class="n">squarepants</span><span class="p">):</span> | |
</pre></div> | |
</td></tr></table> | |
<table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre> 7 | |
8 | |
9 | |
10 | |
11 | |
12</pre></div></td><td class="code"><div class="snippet"><pre><a name="violations_test_file.py-7"></a> <span class="sd">"""A less messy function"""</span> | |
<a name="violations_test_file.py-8"></a> <span class="k">for</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">spongebob</span><span class="p">:</span> | |
<a name="violations_test_file.py-9"></a> <span class="k">if</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">squarepants</span><span class="p">:</span> | |
<a name="violations_test_file.py-10"></a> <span class="k">return</span> <span class="n">char</span> | |
<a name="violations_test_file.py-11"></a><span class="hll"> <span class="n">unused</span><span class="o">=</span><span class="mi">1</span> | |
</span><a name="violations_test_file.py-12"></a> <span class="k">return</span> <span class="bp">None</span> | |
</pre></div> | |
</td></tr></table> | |
</div> | |
</div> | |
</body> | |
</html> | |
---------------------------------------------------------------------- | |
Ran 175 tests in 2.201s | |
FAILED (failures=14) | |
ERROR: InvocationError: '/work/shoobx/diff-cover/.tox/py27/bin/coverage run -m nose' | |
___________________________________________________________ summary ____________________________________________________________ | |
ERROR: py27: commands failed | |
(ve) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment