diff-cover 9.3.1__tar.gz → 9.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diff_cover-9.3.1 → diff_cover-9.3.2}/PKG-INFO +1 -1
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/diff_cover_tool.py +2 -5
- {diff_cover-9.3.1 → diff_cover-9.3.2}/pyproject.toml +1 -1
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_diff_cover_tool.py +12 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/LICENSE +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/NOTICE +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/README.rst +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/__init__.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/command_runner.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/config_parser.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/diff_quality_tool.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/diff_reporter.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/git_diff.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/git_path.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/hook.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/hookspecs.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/report_generator.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/snippets.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/console_coverage_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/console_quality_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/external_style.css +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/html_coverage_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/html_quality_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/markdown_coverage_report.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/markdown_quality_report.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/snippet_content.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/snippet_content.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/snippet_content.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/templates/snippet_style.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/util.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/violationsreporters/__init__.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/violationsreporters/base.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/violationsreporters/java_violations_reporter.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/violationsreporters/violations_reporter.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/__init__.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/add_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/add_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/add_json_report.json +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/add_markdown_report.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/changed_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/changed_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/coverage.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/coverage1.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/coverage2.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/coverage_missing_lines.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/delete_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/delete_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/dotnet_coverage.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/dotnet_coverage_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/empty.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/empty_pycodestyle_violations.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/expand_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/external_css_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/external_style.css +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_add.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_changed.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_code_dupe.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_delete.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_dotnet.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_external_css.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_lua.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_moved.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_mult.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_subdir.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_unicode.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_violations.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/git_diff_violations_two_files.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/hello.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/hi.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/html_report_empty.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/html_report_one_snippet.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/html_report_two_snippets.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/lcov.info +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/lua_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/luacoverage.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/markdown_report_one_snippet.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/markdown_report_two_snippets.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/moved_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/moved_coverage.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/moved_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/mult_inputs_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/mult_inputs_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_violations_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_violations_report.json +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_violations_report.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_violations_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_violations_report_external_css.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pyflakes_two_files.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pyflakes_violations_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pyflakes_violations_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylint_dupe.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylint_dupe_violations_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylint_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylint_violations_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylint_violations_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylint_violations_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pylintrc +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/show_uncovered_lines_console.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet.css +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_8859.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_arabic_output.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_default.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_invalid_violations.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_list.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_list.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_list2.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_list3.md +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_no_filename_ext.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_src.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_src2.cpp +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_src3.cpp +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_unicode.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_unicode.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/snippet_unicode_html_output.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/subdir_coverage_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/subdir_coverage_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/test_src.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/unicode_console_report.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/unicode_coverage.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/unicode_html_report.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/unicode_test_src.txt +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/violations_test_file.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/helpers.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/snippet_list_unicode.html +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_clover_violations_reporter/test.xml +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_clover_violations_reporter.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_config_parser.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_diff_cover_main.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_diff_quality_main.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_diff_reporter.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_git_diff.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_git_diff_file.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_git_path.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_integration.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_java_violations_reporter.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_report_generator.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_snippets.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_util.py +0 -0
- {diff_cover-9.3.1 → diff_cover-9.3.2}/tests/test_violations_reporter.py +0 -0
|
@@ -56,14 +56,11 @@ LOGGER = logging.getLogger(__name__)
|
|
|
56
56
|
def format_type(value):
|
|
57
57
|
"""
|
|
58
58
|
Accepts:
|
|
59
|
-
--format html
|
|
60
|
-
--format json
|
|
61
|
-
--format json,html
|
|
62
|
-
--format html,json:path/to/file.json
|
|
59
|
+
--format html:path/to/file.html,json:path/to/file.json
|
|
63
60
|
|
|
64
61
|
return: dict of strings to paths
|
|
65
62
|
"""
|
|
66
|
-
return dict((item.split(":") for item in value.split(",")) if value else {})
|
|
63
|
+
return dict((item.split(":", 1) for item in value.split(",")) if value else {})
|
|
67
64
|
|
|
68
65
|
|
|
69
66
|
def parse_coverage_args(argv):
|
|
@@ -16,6 +16,18 @@ def test_parse_with_html_report():
|
|
|
16
16
|
assert not arg_dict.get("ignore_unstaged")
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
def test_report_path_with_colon():
|
|
20
|
+
argv = [
|
|
21
|
+
"reports/coverage.xml",
|
|
22
|
+
"--format",
|
|
23
|
+
"json:/this:path:should:work/without:breaking.json",
|
|
24
|
+
]
|
|
25
|
+
arg_dict = parse_coverage_args(argv)
|
|
26
|
+
assert arg_dict.get("format") == {
|
|
27
|
+
"json": "/this:path:should:work/without:breaking.json"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
def test_parse_with_no_report():
|
|
20
32
|
argv = ["reports/coverage.xml"]
|
|
21
33
|
arg_dict = parse_coverage_args(argv)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diff_cover-9.3.1 → diff_cover-9.3.2}/diff_cover/violationsreporters/java_violations_reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diff_cover-9.3.1 → diff_cover-9.3.2}/tests/fixtures/pycodestyle_violations_report_external_css.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|