Revisions of python-coverage
Ana Guerrero (anag+factory)
accepted
request 1173002
from
Steve Kowalik (StevenK)
(revision 62)
- Update to 7.5.1: * Fix: a pragma comment on the continuation lines of a multi-line statement now excludes the statement and its body, the same as if the pragma is on the first line. * Fix: very complex source files could cause a maximum recursion error when creating an HTML report. * HTML report improvements: + Support files (JavaScript and CSS) referenced by the HTML report now have hashes added to their names to ensure updated files are used instead of stale cached copies. + Missing branch coverage explanations that said "the condition was never false" now read "the condition was always true" because it's easier to understand. + Column sort order is remembered better as you move between the index pages. * Added initial support for function and class reporting in the HTML report. * Other HTML report improvements: + There is now a "hide covered" checkbox to filter out 100% files. + The index page is always sorted by one of its columns, with clearer indications of the sorting. + The "previous file" shortcut key didn't work on the index page, but now it does. * The debug output showing which configuration files were tried now shows absolute paths to help diagnose problems where settings aren't taking effect, and is renamed from "attempted_config_files" to the more logical "config_files_attempted." * Fix: in some cases, even with [run] relative_files=True, a data file could be created with absolute path names. When combined with other relative data files, it was random whether the absolute file names would be made relative or not. If they weren't, then a file would be listed
Ana Guerrero (anag+factory)
accepted
request 1129470
from
Dirk Mueller (dirkmueller)
(revision 61)
- update to 7.3.2: * The ``coverage lcov`` command ignored the ``[report] exclude_lines`` and ``[report] exclude_also`` settings * Sometimes SQLite will create journal files alongside the coverage.py database files. These are ephemeral, but could be mistakenly included when combining data files. * On Python 3.12+, we now disable SQLite writing journal files, which should be a little faster. * The new 3.12 soft keyword ``type`` is properly bolded in HTML reports. * Removed the "fullcoverage" feature used by CPython to measure the coverage of early-imported standard library modules.
Ana Guerrero (anag+factory)
accepted
request 1111926
from
Dirk Mueller (dirkmueller)
(revision 60)
- update to 7.3.1: * The semantics of stars in file patterns has been clarified in the docs. A leading or trailing star matches any number of path components, like a double star would. This is different than the behavior of a star in the middle of a pattern. since 6.4.3. - Handle cases where python2 is disabled - add LICENSE.txt - python3 package added - minor spec improvement (files section)
Ana Guerrero (anag+factory)
accepted
request 1109341
from
Dirk Mueller (dirkmueller)
(revision 59)
- Update in SLE-15 (bsc#1195916, bsc#1196696, jsc#PM-3356, jsc#SLE-23972)
Dominique Leuenberger (dimstar_suse)
accepted
request 1103928
from
Dirk Mueller (dirkmueller)
(revision 58)
Dominique Leuenberger (dimstar_suse)
accepted
request 1103606
from
Matej Cepl (mcepl)
(revision 57)
Forwarded request #1103414 from apersaud update to latest version
Dominique Leuenberger (dimstar_suse)
accepted
request 1086006
from
Daniel Garcia (dgarcia)
(revision 56)
- Add fix-tests.patch gh#nedbat/coveragepy@3fdda7d017ff - Update to 7.2.5: * Fix: html_report() could fail with an AttributeError on isatty if run in an unusual environment where sys.stdout had been replaced. This is now fixed. - 7.2.4: * Fix: with relative_files = true, specifying a specific file to include or omit wouldn't work correctly (issue 1604). This is now fixed, with testing help by Marc Gibbons. * Fix: the XML report would have an incorrect <source> element when using relative files and the source option ended with a slash (issue 1541). This is now fixed, thanks to Kevin Brown-Silva. * When the HTML report location is printed to the terminal, it's now a terminal-compatible URL, so that you can click the location to open the HTML file in your browser. Finishes issue 1523 thanks to Ricardo Newbery. * Docs: a new :ref:`Migrating page <migrating>` with details about how to migrate between major versions of coverage.py. It currently covers the wildcard changes in 7.x. Thanks, Brian Grohe. - 7.2.3: * Fix: the :ref:`config_run_sigterm` setting was meant to capture data if a process was terminated with a SIGTERM signal, but it didn't always. This was fixed thanks to Lewis Gaul, closing issue 1599. * Performance: HTML reports with context information are now much more compact. File sizes are typically as small as one-third the previous size, but can be dramatically smaller. This closes issue 1584 thanks to Oleh Krehel. * Development dependencies no longer use hashed pins, closing issue 1592.
Dominique Leuenberger (dimstar_suse)
accepted
request 1081957
from
Dirk Mueller (dirkmueller)
(revision 55)
Dominique Leuenberger (dimstar_suse)
accepted
request 1074499
from
Dirk Mueller (dirkmueller)
(revision 54)
- update to 7.2.2: * Fix: if a virtualenv was created inside a source directory, and a sourced package was installed inside the virtualenv, then all of the third-party packages inside the virtualenv would be measured. This was incorrect, but has now been fixed: only the specified packages will be measured. * Fix: the ``coverage lcov`` command could create a .lcov file with incorrect LF (lines found) and LH (lines hit) totals * Fix: the ``coverage xml`` command on Windows could create a .xml file with duplicate ``<package>`` elements.
Dominique Leuenberger (dimstar_suse)
accepted
request 1071881
from
Dirk Mueller (dirkmueller)
(revision 53)
- update to 7.2.1: * Fix: the PyPI page had broken links to documentation pages, but no longer does * Fix: public members of the coverage module are now properly indicated so that mypy will find them * Added a new setting ``[report] exclude_also`` to let you add more exclusions without overwriting the defaults. * Added a :meth:`.CoverageData.purge_files` method to remove recorded data for a particular file. * Fix: when reporting commands fail, they will no longer congratulate themselves with messages like "Wrote XML report to file.xml" before spewing a traceback about their failure. * Fix: arguments in the public API that name file paths now accept pathlib.Path objects. This includes the ``data_file`` and ``config_file`` arguments to the Coverage constructor and the ``basename`` argument to CoverageData. * Fix: In some embedded environments, an IndexError could occur on stop() when the originating thread exits before completion. This is now fixed, thanks to * Added a ``py.typed`` file to announce our type-hintedness.
Dominique Leuenberger (dimstar_suse)
accepted
request 1063170
from
Factory Maintainer (factory-maintainer)
(revision 52)
Automatic submission by obs-autosubmit
Dominique Leuenberger (dimstar_suse)
accepted
request 1055949
from
Dirk Mueller (dirkmueller)
(revision 51)
- update to 7.0.3: * Fix: when using pytest-cov or pytest-xdist, or perhaps both, the combining step could fail with ``assert row is not None`` using 7.0.2.
Dominique Leuenberger (dimstar_suse)
accepted
request 1007714
from
Dirk Mueller (dirkmueller)
(revision 49)
- update to 6.5.0: - The JSON report now includes details of which branches were taken, and which are missing for each file. Thanks, Christoph Blessing (`pull 1438`_). Closes `issue 1425`_. - Starting with coverage.py 6.2, ``class`` statements were marked as a branch. This wasn't right, and has been reverted, fixing `issue 1449`_. Note this will very slightly reduce your coverage total if you are measuring branch coverage. - Packaging is now compliant with `PEP 517`_, closing `issue 1395`_. - A new debug option ``--debug=pathmap`` shows details of the remapping of paths that happens during combine due to the ``[paths]`` setting. - Fix an internal problem with caching of invalid Python parsing. Found by OSS-Fuzz, fixing their `bug 50381`_. .. _bug 50381: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50381 .. _PEP 517: https://peps.python.org/pep-0517/ .. _issue 1395: https://github.com/nedbat/coveragepy/issues/1395 .. _issue 1425: https://github.com/nedbat/coveragepy/issues/1425 .. _pull 1438: https://github.com/nedbat/coveragepy/pull/1438 .. _issue 1449: https://github.com/nedbat/coveragepy/issues/1449
Dominique Leuenberger (dimstar_suse)
accepted
request 1002717
from
Dirk Mueller (dirkmueller)
(revision 48)
Dominique Leuenberger (dimstar_suse)
accepted
request 997536
from
Dirk Mueller (dirkmueller)
(revision 47)
Dominique Leuenberger (dimstar_suse)
accepted
request 892445
from
Matej Cepl (mcepl)
(revision 45)
- Add change__file__report-dir.patch to fix another issue repored in gh#nedbat/coveragepy#1161. - Add a patch from upstream (slightly rebased) to make data collection operations thread safe: * 0001-make-data-collection-operations-thread-safe.patch - Add traced_file_absolute.patch to fix gh#nedbat/coveragepy#1161. - Switch off test_debug_trace started to avoid failure (gh#nedbat/coveragepy#1161). - Update to 5.5: - coverage combine has a new option, --keep to keep the original data files after combining them. The default is still to delete the files after they have been combined. This was requested in issue 1108 and implemented in pull request 1110. Thanks, Éric Larivière. - When reporting missing branches in coverage report, branches aren’t reported that jump to missing lines. This adds to the long-standing behavior of not reporting branches from missing lines. Now branches are only reported if both the source and destination lines are executed. Closes both issue 1065 and issue 955. - Minor improvements to the HTML report: - The state of the line visibility selector buttons is saved in local storage so you don’t have to fiddle with them so often, fixing issue 1123. - It has a little more room for line numbers so that 4-digit numbers work well, fixing issue 1124. - Improved the error message when combining line and branch data, so that users will be more likely to understand what’s happening, closing issue 803.
Richard Brown (RBrownSUSE)
accepted
request 868480
from
Dirk Mueller (dirkmueller)
(revision 44)
- update to 5.4: - The text report produced by ``coverage report`` now always outputs a TOTAL line, even if only one Python file is reported. This makes regex parsing of the output easier. Thanks, Judson Neer. This had been requested a number of times - The ``skip_covered`` and ``skip_empty`` settings in the configuration file can now be specified in the ``[html]`` section, so that text reports and HTML reports can use separate settings. The HTML report will still use the ``[report]`` settings if there isn't a value in the ``[html]`` section. - Combining files on Windows across drives how works properly - Fix an obscure warning from deep in the _decimal module, as reported in `issue 1084`_. - Update to support Python 3.10 alphas in progress, including `PEP 626: Precise line numbers for debugging and other tools <pep626_>`_.
Dominique Leuenberger (dimstar_suse)
accepted
request 857108
from
Dirk Mueller (dirkmueller)
(revision 43)
- update to 5.3.1: - When using ``--source`` on a large source tree, v5.x was slower than previous versions. This performance regression is now fixed, closing `issue 1037`_. - Mysterious SQLite errors can happen on PyPy, as reported in `issue 1010`_. An immediate retry seems to fix the problem, although it is an unsatisfying solution. - The HTML report now saves the sort order in a more widely supported way, fixing `issue 986`_. Thanks, Sebastián Ramírez (`pull request 1066`_). - The HTML report pages now have a :ref:`Sleepy Snake <sleepy>` favicon. - Wheels are now provided for manylinux2010, and for PyPy3 (pp36 and pp37).
Displaying revisions 1 - 20 of 62