Comments (6)
hmm, I usually dont run the tests though setup.py. I usually just run pytest or rely on travis. Let me verify the build still passes
from diff_cover.
So I just ran the tests locally
I ² venv ~/c/diff-cover master nosetests 12.9s Tue Jan 9 19:23:53 2018
........usage: nosetests [-h] --violations TOOL [--html-report FILENAME]
[--external-css-file FILENAME] [--compare-branch BRANCH]
[--options [OPTIONS]] [--fail-under SCORE] [--ignore-staged]
[--ignore-unstaged] [--exclude EXCLUDE [EXCLUDE ...]]
[input_reports [input_reports ...]]
nosetests: error: argument --violations is required
usage: nosetests [-h] --violations TOOL [--html-report FILENAME]
[--external-css-file FILENAME] [--compare-branch BRANCH]
[--options [OPTIONS]] [--fail-under SCORE] [--ignore-staged]
[--ignore-unstaged] [--exclude EXCLUDE [EXCLUDE ...]]
[input_reports [input_reports ...]]
nosetests: error: argument --violations is required
...................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 219 tests in 11.482s
and ran the travis build
https://travis-ci.org/Bachmann1234/diff-cover/builds/319697755
I dont have setup.py test command setup
from diff_cover.
Ok, pull the latest. Just added the config required 85c3095
from diff_cover.
Thanks, now tests under python setup.py test
completely passed :)
I try to write package for nixos for diff-cover
. I ran build in sanbox and have followed tests failed. Full log:
running install tests
running test
running egg_info
writing requirements to diff_cover.egg-info/requires.txt
writing diff_cover.egg-info/PKG-INFO
writing top-level names to diff_cover.egg-info/top_level.txt
writing dependency_links to diff_cover.egg-info/dependency_links.txt
writing entry points to diff_cover.egg-info/entry_points.txt
reading manifest file 'diff_cover.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'diff_cover.egg-info/SOURCES.txt'
running build_ext
test_parse_options (diff_cover.tests.test_args.MainTest) ... ok
test_parse_options_without_quotes (diff_cover.tests.test_args.MainTest) ... ok
test_parse_prog_name (diff_cover.tests.test_args.MainTest) ... ok
test_parse_invalid_arg (diff_cover.tests.test_args.ParseArgsTest) ... ok
test_parse_with_exclude (diff_cover.tests.test_args.ParseArgsTest) ... ok
test_parse_with_html_report (diff_cover.tests.test_args.ParseArgsTest) ... ok
test_parse_with_ignored_unstaged (diff_cover.tests.test_args.ParseArgsTest) ... ok
test_parse_with_no_html_report (diff_cover.tests.test_args.ParseArgsTest) ... ok
test_parse_invalid_arg (diff_cover.tests.test_args.ParseQualityArgsTest) ... usage: nix_run_setup.py [-h] --violations TOOL [--html-report FILENAME]
[--external-css-file FILENAME]
[--compare-branch BRANCH] [--options [OPTIONS]]
[--fail-under SCORE] [--ignore-staged]
[--ignore-unstaged] [--exclude EXCLUDE [EXCLUDE ...]]
[input_reports [input_reports ...]]
nix_run_setup.py: error: argument --violations is required
usage: nix_run_setup.py [-h] --violations TOOL [--html-report FILENAME]
[--external-css-file FILENAME]
[--compare-branch BRANCH] [--options [OPTIONS]]
[--fail-under SCORE] [--ignore-staged]
[--ignore-unstaged] [--exclude EXCLUDE [EXCLUDE ...]]
[input_reports [input_reports ...]]
nix_run_setup.py: error: argument --violations is required
ok
test_parse_with_exclude (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_parse_with_html_report (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_parse_with_ignored_unstaged (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_parse_with_multiple_input_reports (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_parse_with_no_html_report (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_parse_with_one_input_report (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_parse_with_options (diff_cover.tests.test_args.ParseQualityArgsTest) ... ok
test_duplicate_source_paths (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_fnmatch (diff_cover.tests.test_diff_reporter.GitDiffReporterTest)
Verify that our fnmatch wrapper works as expected. ... ok
test_fnmatch_returns_the_default_with_empty_default (diff_cover.tests.test_diff_reporter.GitDiffReporterTest)
The default parameter should be returned when no patterns are given. ... ok
test_git_deleted_lines (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_diff_error (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_exclude (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_line_within_hunk (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_lines_changed (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_no_such_file (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_overlapping_lines (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_repeat_lines (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_source_paths (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_source_paths_with_supported_extensions (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_git_unicode_filename (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_ignore_lines_outside_src (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_ignore_staged_and_unstaged_inclusion (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_ignore_staged_inclusion (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_ignore_unstaged_inclusion (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_inclusion_list (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_inter_diff_conflict (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_merge_conflict_diff (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_name (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_name_compare_branch (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_name_ignore_staged (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_name_ignore_staged_and_unstaged (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_name_ignore_unstaged (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_no_diff (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_one_line_file (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_plus_sign_in_hunk_bug (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_terminating_chars_in_hunk (diff_cover.tests.test_diff_reporter.GitDiffReporterTest) ... ok
test_diff_committed (diff_cover.tests.test_git_diff.TestGitDiffTool) ... ok
test_diff_committed_compare_branch (diff_cover.tests.test_git_diff.TestGitDiffTool) ... ok
test_diff_staged (diff_cover.tests.test_git_diff.TestGitDiffTool) ... ok
test_diff_unstaged (diff_cover.tests.test_git_diff.TestGitDiffTool) ... ok
test_errors (diff_cover.tests.test_git_diff.TestGitDiffTool) ... ok
test_absolute_path (diff_cover.tests.test_git_path.TestGitPathTool) ... ok
test_project_root_command (diff_cover.tests.test_git_path.TestGitPathTool) ... ok
test_relative_path (diff_cover.tests.test_git_path.TestGitPathTool) ... ok
test_set_cwd_unicode (diff_cover.tests.test_git_path.TestGitPathTool) ... FAIL
test_set_cwd_unicode_byte_passed_in_for_cwd (diff_cover.tests.test_git_path.TestGitPathTool) ... FAIL
test_added_file_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_added_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_changed_file_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_changed_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_deleted_file_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_deleted_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_dot_net_diff (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_fail_under_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_fail_under_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_fail_under_pass_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_fail_under_pass_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_git_diff_error (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_html_with_external_css (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_lua_coverage (diff_cover.tests.test_integration.DiffCoverIntegrationTest)
coverage report shows that diff-cover needs to normalize ... ok
test_moved_file_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_moved_file_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_mult_inputs_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_mult_inputs_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_subdir_coverage_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest)
Assert that when diff-cover is ran from a subdirectory it ... ok
test_subdir_coverage_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest)
Assert that when diff-cover is ran from a subdirectory it ... ok
test_unicode_console (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_unicode_html (diff_cover.tests.test_integration.DiffCoverIntegrationTest) ... ok
test_added_file_pycodestyle_console (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pycodestyle_console_exclude_file (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pycodestyle_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pyflakes_console (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pyflakes_console_two_files (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pyflakes_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pylint_console (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_added_file_pylint_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_do_nothing_reporter (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_fail_under_console (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_fail_under_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_fail_under_pass_console (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_fail_under_pass_html (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_git_diff_error_diff_quality (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_html_with_external_css (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_pre_generated_pycodestyle_report (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_pre_generated_pyflakes_report (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_pre_generated_pylint_report (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_pylint_report_with_dup_code_violation (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_tool_not_installed (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_tool_not_recognized (diff_cover.tests.test_integration.DiffQualityIntegrationTest) ... ok
test_no_java_file (diff_cover.tests.test_java_violations_reporter.CheckstyleQualityReporterTest)
Expect that we get no results because no Python files. ... ok
test_no_such_file (diff_cover.tests.test_java_violations_reporter.CheckstyleQualityReporterTest)
Expect that we get no results. ... ok
test_quality (diff_cover.tests.test_java_violations_reporter.CheckstyleQualityReporterTest)
Integration test. ... ok
test_no_java_file (diff_cover.tests.test_java_violations_reporter.CheckstyleXmlQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_java_violations_reporter.CheckstyleXmlQualityReporterTest) ... ok
test_quality (diff_cover.tests.test_java_violations_reporter.CheckstyleXmlQualityReporterTest) ... ok
test_quality_error (diff_cover.tests.test_java_violations_reporter.CheckstyleXmlQualityReporterTest) ... ok
test_quality_pregenerated_report (diff_cover.tests.test_java_violations_reporter.CheckstyleXmlQualityReporterTest) ... ok
test_different_files_in_inputs (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest) ... ok
test_empty_violations (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest)
Test that an empty violations report is handled properly ... ok
test_no_such_file (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest) ... ok
test_three_inputs (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest) ... ok
test_two_inputs_first_violate (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest) ... ok
test_two_inputs_second_violate (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest) ... ok
test_violations (diff_cover.tests.test_java_violations_reporter.CloverXmlCoverageReporterTest) ... ok
test_no_java_file (diff_cover.tests.test_java_violations_reporter.FindbugsQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_java_violations_reporter.FindbugsQualityReporterTest) ... ok
test_quality_pregenerated_report (diff_cover.tests.test_java_violations_reporter.FindbugsQualityReporterTest) ... ok
test_empty_report (diff_cover.tests.test_report_generator.HtmlReportGeneratorTest) ... ok
test_generate_report (diff_cover.tests.test_report_generator.HtmlReportGeneratorTest) ... ok
test_multiple_snippets (diff_cover.tests.test_report_generator.HtmlReportGeneratorTest) ... ok
test_one_snippet (diff_cover.tests.test_report_generator.HtmlReportGeneratorTest) ... ok
test_coverage_name (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_diff_name (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_percent_covered (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_src_paths (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_src_paths_not_measured (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_src_with_no_info (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_total_num_lines (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_total_num_missing (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_total_percent_covered (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_violation_lines (diff_cover.tests.test_report_generator.SimpleReportGeneratorTest) ... ok
test_empty_report (diff_cover.tests.test_report_generator.StringReportGeneratorTest) ... ok
test_generate_report (diff_cover.tests.test_report_generator.StringReportGeneratorTest) ... ok
test_hundred_percent (diff_cover.tests.test_report_generator.StringReportGeneratorTest) ... ok
test_combine_adjacent_lines (diff_cover.tests.test_report_generator.TemplateReportGeneratorTest) ... ok
test_combine_adjacent_lines_no_adjacent (diff_cover.tests.test_report_generator.TemplateReportGeneratorTest) ... ok
test_empty_list (diff_cover.tests.test_report_generator.TemplateReportGeneratorTest) ... ok
test_one_number (diff_cover.tests.test_report_generator.TemplateReportGeneratorTest) ... ok
test_empty_file (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_end_range_on_violation (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_load_declared_arabic (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_load_snippets_html (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_load_utf8_snippets (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_multiple_snippets (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_no_lag_line (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_no_lead_line (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_no_violations (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_one_line_file (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_one_snippet (diff_cover.tests.test_snippets.SnippetLoaderTest) ... ok
test_format (diff_cover.tests.test_snippets.SnippetTest) ... ok
test_format_with_invalid_start_line (diff_cover.tests.test_snippets.SnippetTest) ... ok
test_format_with_invalid_violation_lines (diff_cover.tests.test_snippets.SnippetTest) ... ok
test_no_filename_ext (diff_cover.tests.test_snippets.SnippetTest) ... ok
test_style_defs (diff_cover.tests.test_snippets.SnippetTest) ... ok
test_unicode (diff_cover.tests.test_snippets.SnippetTest) ... ok
test_no_js_file (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest) ... ok
test_no_quality_issues_emptystring (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest) ... ok
test_no_quality_issues_newline (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest) ... ok
test_not_installed (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest)
If linter is not available via commandline, it should raise ... ok
test_quality (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest)
Test basic scenarios, including special characters that would appear in JavaScript and mixed quotation marks ... ok
test_quality_error (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest) ... FAIL
test_quality_pregenerated_report (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest) ... ok
test_file_does_not_exist (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_no_python_file (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_no_quality_issues_emptystring (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_no_quality_issues_newline (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_quality (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_quality_error (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... FAIL
test_quality_pregenerated_report (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest) ... ok
test_no_js_file (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest) ... ok
test_no_quality_issues_emptystring (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest) ... ok
test_no_quality_issues_newline (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest) ... ok
test_not_installed (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest)
If linter is not available via commandline, it should raise ... ok
test_quality (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest)
Test basic scenarios, including special characters that would appear in JavaScript and mixed quotation marks ... ok
test_quality_error (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest) ... FAIL
test_quality_pregenerated_report (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest) ... ok
test_no_python_file (diff_cover.tests.test_violations_reporter.PydocstlyeQualityReporterTest)
Expect that we get no results because no Python files. ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.PydocstlyeQualityReporterTest)
Expect that we get no results. ... ok
test_quality (diff_cover.tests.test_violations_reporter.PydocstlyeQualityReporterTest)
Integration test. ... ok
test_no_python_file (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_no_quality_issues_emptystring (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_no_quality_issues_newline (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_quality (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_quality_error (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_quality_pregenerated_report (diff_cover.tests.test_violations_reporter.PyflakesQualityReporterTest) ... ok
test_no_python_file (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_no_quality_issues_emptystring (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_no_quality_issues_newline (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_non_integer_line_num (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_quality (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_quality_deprecation_warning (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_quality_error (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_quality_pregenerated_report (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_quality_pregenerated_report_continuation_char (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_unicode (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ERROR
test_unicode_continuation_char (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest) ... ok
test_run_simple_failure (diff_cover.tests.test_violations_reporter.SimpleCommandTestCase) ... ok
test_run_simple_success (diff_cover.tests.test_violations_reporter.SimpleCommandTestCase) ... ok
test_quality_reporter (diff_cover.tests.test_violations_reporter.SubprocessErrorTestCase) ... ok
test_different_files_in_inputs (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest) ... ok
test_empty_violations (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest)
Test that an empty violations report is handled properly ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest) ... ok
test_non_python_violations (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest)
Non python projects often just have a file name specified while ... ok
test_three_inputs (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest) ... ok
test_two_inputs_first_violate (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest) ... ok
test_two_inputs_second_violate (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest) ... ok
test_violations (diff_cover.tests.test_violations_reporter.XmlCoverageReporterTest) ... ok
test_no_python_file (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... ok
test_no_quality_issues_emptystring (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... ok
test_no_quality_issues_newline (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... ok
test_no_such_file (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... ok
test_quality (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... ok
test_quality_error (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... FAIL
test_quality_pregenerated_report (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest) ... ok
======================================================================
ERROR: test_unicode (diff_cover.tests.test_violations_reporter.PylintQualityReporterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_violations_reporter.py", line 882, in test_unicode
violations = quality.violations(u'file_\u6729.py')
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/violationsreporters/base.py", line 157, in violations
command.append(src_path.encode(sys.getfilesystemencoding()))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u6729' in position 5: ordinal not in range(128)
======================================================================
FAIL: test_set_cwd_unicode (diff_cover.tests.test_git_path.TestGitPathTool)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_git_path.py", line 64, in test_set_cwd_unicode
self.assertEqual(path, expected)
AssertionError: u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd/other_package/file.py' != u'\u253b\u2501\u253b/other_package/file.py'
- \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd/other_package/file.py
? ^^^^^^^^^
+ \u253b\u2501\u253b/other_package/file.py
? ^^^
======================================================================
FAIL: test_set_cwd_unicode_byte_passed_in_for_cwd (diff_cover.tests.test_git_path.TestGitPathTool)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_git_path.py", line 75, in test_set_cwd_unicode_byte_passed_in_for_cwd
self.assertEqual(path, expected)
AssertionError: u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd/other_package/file.py' != u'\u253b\u2501\u253b/other_package/file.py'
- \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd/other_package/file.py
? ^^^^^^^^^
+ \u253b\u2501\u253b/other_package/file.py
? ^^^
======================================================================
FAIL: test_quality_error (diff_cover.tests.test_violations_reporter.ESLintQualityReporterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_violations_reporter.py", line 1099, in test_quality_error
self.assertEqual(six.text_type(ex.exception), 'whoops Ƕئ')
AssertionError: u'whoops \ufffd\ufffd\ufffd\ufffd' != u'whoops \u01f6\u0626'
- whoops \ufffd\ufffd\ufffd\ufffd
+ whoops \u01f6\u0626
======================================================================
FAIL: test_quality_error (diff_cover.tests.test_violations_reporter.Flake8QualityReporterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_violations_reporter.py", line 667, in test_quality_error
self.assertEqual(six.text_type(ex.exception), 'whoops Ƕئ')
AssertionError: u'whoops \ufffd\ufffd\ufffd\ufffd' != u'whoops \u01f6\u0626'
- whoops \ufffd\ufffd\ufffd\ufffd
+ whoops \u01f6\u0626
======================================================================
FAIL: test_quality_error (diff_cover.tests.test_violations_reporter.JsHintQualityReporterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_violations_reporter.py", line 1099, in test_quality_error
self.assertEqual(six.text_type(ex.exception), 'whoops Ƕئ')
AssertionError: u'whoops \ufffd\ufffd\ufffd\ufffd' != u'whoops \u01f6\u0626'
- whoops \ufffd\ufffd\ufffd\ufffd
+ whoops \u01f6\u0626
======================================================================
FAIL: test_quality_error (diff_cover.tests.test_violations_reporter.pycodestyleQualityReporterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-diff_cover-1.0.2.drv-0/source/diff_cover/tests/test_violations_reporter.py", line 395, in test_quality_error
self.assertEqual(six.text_type(ex.exception), 'whoops Ƕئ')
AssertionError: u'whoops \ufffd\ufffd\ufffd\ufffd' != u'whoops \u01f6\u0626'
- whoops \ufffd\ufffd\ufffd\ufffd
+ whoops \u01f6\u0626
----------------------------------------------------------------------
Ran 219 tests in 4.910s
FAILED (failures=6, errors=1)
Test failed: <unittest.runner.TextTestResult run=219 errors=1 failures=6>
error: Test failed: <unittest.runner.TextTestResult run=219 errors=1 failures=6>
builder for ‘/nix/store/bzs7w654qlyjhjlvy0h9svb621rhckmx-python2.7-diff_cover-1.0.2.drv’ failed with exit code 1
error: build of ‘/nix/store/bzs7w654qlyjhjlvy0h9svb621rhckmx-python2.7-diff_cover-1.0.2.drv’ failed
from diff_cover.
That's odd. Looking at the output I wonder if I'm making some assumption about the system encoding that does not hold for your system... I know the tests pass in Linux so I don't think it's an os issue
from diff_cover.
NIX sandbox has strange default encoding ANSI_X3.4-1968
, when I set LC_ALL=en_US.UTF-8
all tests passed. Thank you:)
from diff_cover.
Related Issues (20)
- any ways to get all measured lines' numbers from json report HOT 2
- Feature request — Invert output to find flaky tests and help determine test failures HOT 1
- does this tool support C++ opencppcoverage? cppcoverage has html, cobertura reports. HOT 1
- urgent!! work environment!!No lines with coverage information in this diff. HOT 2
- new Github action for diff-cover HOT 1
- There is a folder code that cannot be counted. It has been analyzed for a long time, please help HOT 1
- 5 tests fail HOT 2
- Package has classifier "License :: Other/Proprietary License" - raising licensing flags for Sonatype HOT 3
- Enhancing Report Visualization in 'diff-cover' Project for Improved Code Analysis HOT 2
- 7.7.0: pytest is failing in `tests/test_violations_reporter.py::TestFlake8QualityReporterTest::test_file_does_not_exist` unit HOT 33
- Support ruff for quality checking HOT 1
- diff everything on removal HOT 11
- Diff between two coverage files instead of coverage file from branch HOT 2
- Running diff-quality with a tool which is not installed gives FIleNotFoundError rather than helpful "<tool> is not installed" error message HOT 2
- Add support for Pyright as a quality-checking tool HOT 2
- A little suggest about supporting Windows system commands
- How to show the covered line in the diff coverage html report? HOT 1
- 2 tests fail HOT 1
- No lines with coverage information in this diff. HOT 1
- Customise reporting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diff_cover.