Bachmann1234 / diff_cover

Automatically find diff lines that need test coverage.
Apache License 2.0
696 stars 189 forks source link

2 tests fail #400

Closed yurivict closed 2 weeks ago

yurivict commented 5 months ago
========================================================================================= FAILURES ==========================================================================================
_____________________________________________________________________________ tests/fixtures/snippet_unicode.py _____________________________________________________________________________
[gw0] freebsd14 -- Python 3.9.18 /usr/local/bin/python3.9
1: error: invalid syntax  [syntax]
_______________________________________________________________________________________ test session ________________________________________________________________________________________
[gw3] freebsd14 -- Python 3.9.18 /usr/local/bin/python3.9
mypy exited with status 2.

-------- coverage: platform freebsd14, python 3.9.18-final-0 ---------
Name                                                         Stmts   Miss  Cover
--------------------------------------------------------------------------------
diff_cover/__init__.py                                           9      4    56%
diff_cover/command_runner.py                                    28      2    93%
diff_cover/config_parser.py                                     55      3    95%
diff_cover/diff_cover_tool.py                                  101      8    92%
diff_cover/diff_quality_tool.py                                132     18    86%
diff_cover/diff_reporter.py                                    178      4    98%
diff_cover/git_diff.py                                          28      0   100%
diff_cover/git_path.py                                          29      0   100%
diff_cover/hookspecs.py                                          4      0   100%
diff_cover/report_generator.py                                 156      1    99%
diff_cover/snippets.py                                         139      2    99%
diff_cover/util.py                                               4      0   100%
diff_cover/violationsreporters/__init__.py                       0      0   100%
diff_cover/violationsreporters/base.py                          93      3    97%
diff_cover/violationsreporters/java_violations_reporter.py      72      4    94%
diff_cover/violationsreporters/violations_reporter.py          240      8    97%
tests/__init__.py                                                0      0   100%
tests/helpers.py                                                68      1    99%
tests/test_clover_violations_reporter.py                        10      0   100%
tests/test_config_parser.py                                     44      0   100%
tests/test_diff_cover_main.py                                   20      0   100%
tests/test_diff_cover_tool.py                                   49      0   100%
tests/test_diff_quality_main.py                                 77      0   100%
tests/test_diff_reporter.py                                    225      0   100%
tests/test_git_diff.py                                          79      0   100%
tests/test_git_path.py                                          50      0   100%
tests/test_integration.py                                      223      0   100%
tests/test_java_violations_reporter.py                         134      0   100%
tests/test_report_generator.py                                 214      1    99%
tests/test_snippets.py                                         125      1    99%
tests/test_util.py                                               7      1    86%
tests/test_violations_reporter.py                              717      0   100%
--------------------------------------------------------------------------------
TOTAL                                                         3310     61    98%

=========================================================================================== mypy ============================================================================================
Found 1 error in 1 file (errors prevented further checking)
============================================================================== 2 failed, 327 passed in 55.83s ===============================================================================
*** Error code 1

Tests are run for the FreeBSD port devel/py-diff-cover.

Version: 9.0.0 Python-3.9 FreeBSD 14.0

Bachmann1234 commented 5 months ago

The tests pass in the ci system and my machine. So I'm gonna need more information to have any hope of helping you figure out what's happening.

What's the testing procedure here? Why is mypy being run?

yurivict commented 2 weeks ago

All tests pass in 9.2.0