blob: 03cc7607db3aedad8d0ab69e7271233328b8933c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
.. _api:
============
Coverage API
============
:history: 20090524T134300, brand new docs.
:history: 20090613T164000, final touches for 3.0
:history: 20100221T151500, docs for 3.3 (on the plane back from PyCon)
The API to coverage.py is very simple, contained in a single module called
`coverage`. Most of the interface is in a single class, also called
`coverage`. Methods on the coverage object correspond to operations available
in the command line interface. For example, a simple use would be::
import coverage
cov = coverage.coverage()
cov.start()
# .. run your code ..
cov.stop()
cov.save()
The coverage module
-------------------
.. module:: coverage
.. autoclass:: coverage
:members:
Starting coverage automatically
-------------------------------
This is cool.
.. autofunction:: process_startup
|