summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.rst18
-rw-r--r--doc/api_coveragedata.rst1
-rw-r--r--doc/api_plugin.rst1
-rw-r--r--doc/changes.rst2
-rw-r--r--doc/config.rst3
-rw-r--r--doc/contexts.rst2
-rw-r--r--doc/dbschema.rst10
7 files changed, 16 insertions, 21 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 1e327992..f2c017f2 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -21,8 +21,8 @@ Unreleased
----------
- The compact line number representation introduced in 5.0a6 is called a
- "numbits." The coverage.numbits module provides functions for working with
- them.
+ "numbits." The :mod:`coverage.numbits` module provides functions for working
+ with them.
- A class named "test_something" no longer confuses the `test_function` dynamic
context setting. Fixes `issue 829`_.
@@ -62,19 +62,19 @@ Version 5.0a6 --- 2019-07-16
- SQLite data storage is now faster. There's no longer a reason to keep the
JSON data file code, so it has been removed.
-- Changes to the :class:`CoverageData` interface:
+- Changes to the :class:`.CoverageData` interface:
- - The new :meth:`CoverageData.dumps` method serializes the data to a string,
- and a corresponding :meth:`CoverageData.loads` method reconstitutes ths
+ - The new :meth:`.CoverageData.dumps` method serializes the data to a string,
+ and a corresponding :meth:`.CoverageData.loads` method reconstitutes ths
data. The format of the data string is subject to change at any time, and
so should only be used between two installations of the same version of
coverage.py.
- - The :meth:`CoverageData constructor<CoverageData.__init__>` has a new
+ - The :meth:`CoverageData constructor<.CoverageData.__init__>` has a new
argument, `no_disk` (default: False). Setting it to True prevents writing
any data to the disk. This is useful for transient data objects.
-- Added the classmethod :meth:`Coverage.current` to get the latest started
+- Added the classmethod :meth:`.Coverage.current` to get the latest started
Coverage instance.
- Multiprocessing support in Python 3.8 was broken, but is now fixed. Closes
@@ -115,7 +115,7 @@ Version 5.0a5 --- 2019-05-07
:ref:`dynamic_context_plugins` for more details.
- Another tool (such as a test runner) can use the new
- :meth:`Coverage.switch_context` method to explicitly change the context.
+ :meth:`.Coverage.switch_context` method to explicitly change the context.
- The ``dynamic_context = test_function`` setting now works with Python 2
old-style classes, though it only reports the method name, not the class it
@@ -134,7 +134,7 @@ Version 5.0a5 --- 2019-05-07
- Combining data stored in SQLite now goes about twice as fast, fixing `issue
761`_. Thanks, Stephan Richter.
-- The ``filename`` attribute on :class:`CoverageData` objects has been made
+- The ``filename`` attribute on :class:`.CoverageData` objects has been made
private. You can use the ``data_filename`` method to get the actual file
name being used to store data, and the ``base_filename`` method to get the
original filename before parallelizing suffixes were added. This is part of
diff --git a/doc/api_coveragedata.rst b/doc/api_coveragedata.rst
index b3b64328..3ab741ec 100644
--- a/doc/api_coveragedata.rst
+++ b/doc/api_coveragedata.rst
@@ -11,6 +11,7 @@ The CoverageData class
.. versionadded:: 4.0
.. module:: coverage
+ :noindex:
.. autoclass:: CoverageData
:members:
diff --git a/doc/api_plugin.rst b/doc/api_plugin.rst
index d070e2bf..91219247 100644
--- a/doc/api_plugin.rst
+++ b/doc/api_plugin.rst
@@ -13,6 +13,7 @@ Plug-in classes
.. module:: coverage
+ :noindex:
The CoveragePlugin class
------------------------
diff --git a/doc/changes.rst b/doc/changes.rst
index 1dd7b911..73d1532b 100644
--- a/doc/changes.rst
+++ b/doc/changes.rst
@@ -3,6 +3,4 @@
.. _changes:
-.. module:: coverage
-
.. include:: ../CHANGES.rst
diff --git a/doc/config.rst b/doc/config.rst
index 04daa01d..35584f01 100644
--- a/doc/config.rst
+++ b/doc/config.rst
@@ -17,7 +17,6 @@ Configuration reference
.. :history: 20150124T173400, updated for 4.0a4
.. :history: 20150802T174600, updated for 4.0b1
-.. module:: coverage
Coverage.py options can be specified in a configuration file. This makes it
easier to re-run coverage.py with consistent settings, and also allows for
@@ -162,7 +161,7 @@ in measurement or reporting. Ignored if ``source`` is set. See :ref:`source`
for details.
``note`` (string): an arbitrary string that will be written to the data file.
-You can use the :meth:`CoverageData.run_infos` method to retrieve this string
+You can use the :meth:`.CoverageData.run_infos` method to retrieve this string
from a data file.
``omit`` (multi-string): a list of file name patterns, the files to leave out
diff --git a/doc/contexts.rst b/doc/contexts.rst
index 6a1293fd..8f7854f9 100644
--- a/doc/contexts.rst
+++ b/doc/contexts.rst
@@ -11,8 +11,6 @@ Measurement contexts
.. versionadded:: 5.0
-.. module:: coverage
-
Coverage.py measures whether code was run, but it can also record the context
in which it was run. This can provide more information to help you understand
the behavior of your tests.
diff --git a/doc/dbschema.rst b/doc/dbschema.rst
index aa838fdf..c57de92e 100644
--- a/doc/dbschema.rst
+++ b/doc/dbschema.rst
@@ -9,17 +9,15 @@ Coverage.py database schema
.. versionadded:: 5.0
-.. module:: coverage
-
Coverage.py stores data in a SQLite database, by default called ``.coverage``.
-For most needs, the :class:`CoverageData` API will be sufficient, and should be
-preferred to accessing the database directly. Only advanced uses will need to
-use the database.
+For most needs, the :class:`.CoverageData` API will be sufficient, and should
+be preferred to accessing the database directly. Only advanced uses will need
+to use the database.
You can use SQLite tools such as the :mod:`sqlite3 <python:sqlite3>` module in
the Python standard library to access the data. Some data is stored in a
packed format that will need custom functions to access. See
-:func:`register_sqlite_functions`.
+:func:`.register_sqlite_functions`.
Database schema