A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/wbolster/emacs-python-coverage below:

wbolster/emacs-python-coverage: show python coverage information directly in emacs

This is an experimental Emacs package to report code coverage output produced by Python's coverage package directly inside Emacs buffers.

coverage's xml output follows the cobertura format, it should work with similar reports from other tools, like C/C++ with gcovr.

Best used together with python-pytest.el.

Minor mode for automagically updated overlays:

Alternatively, commands for manually updated overlays:

Navigation commands:

Run flycheck-select-checker, pick python-coverage.

This package reads the XML output produced by Python's coverage package. Usually this file is named coverage.xml.

With plain coverage:

With pytest-cov, pass --cov-report=xml, e.g. via pyproject.toml:

[tool.pytest.ini_options]
addopts = [
  "--cov=your-package",
  "--cov=test",
  "--cov-report=xml",
]

Command for manual coverage file selection:

Customizable settings (see their description for details) in the python-coverage group, e.g. via M-x customize-group:

Styling via custom faces, e.g. via M-x customize-face:

Note: by default this package inherits from magit-diff-* faces, which should work in most themes. This requires magit to be installed, but it's not otherwise used.

This package was created by wouter bolsterlee (@wbolster).

BSD; see LICENSE.rst.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4