diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-30 07:16:54 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-30 07:16:54 -0400 |
commit | c39a187ef78bf7049c8e53016c162c721d100595 (patch) | |
tree | 7ddb28219c3548810c282ab180a35e85205e8cd4 | |
parent | 6877b2224d3e8939c8379f0428f7b62f98c22f36 (diff) | |
download | python-coveragepy-git-c39a187ef78bf7049c8e53016c162c721d100595.tar.gz |
The name of the project is Coverage, not coverage.py.
-rw-r--r-- | CHANGES.txt | 17 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.txt | 8 | ||||
-rw-r--r-- | TODO.txt | 6 | ||||
-rw-r--r-- | coverage/annotate.py | 2 | ||||
-rw-r--r-- | coverage/cmdline.py | 10 | ||||
-rw-r--r-- | coverage/codeunit.py | 2 | ||||
-rw-r--r-- | coverage/collector.py | 2 | ||||
-rw-r--r-- | coverage/control.py | 4 | ||||
-rw-r--r-- | coverage/data.py | 2 | ||||
-rw-r--r-- | coverage/html.py | 2 | ||||
-rw-r--r-- | coverage/htmlfiles/index.html | 2 | ||||
-rw-r--r-- | coverage/htmlfiles/style.css | 2 | ||||
-rw-r--r-- | coverage/misc.py | 2 | ||||
-rw-r--r-- | coverage/parser.py | 2 | ||||
-rw-r--r-- | coverage/report.py | 2 | ||||
-rw-r--r-- | coverage/tracer.c | 2 | ||||
-rw-r--r-- | setup.py | 7 | ||||
-rw-r--r-- | test/coveragetest.py | 6 | ||||
-rw-r--r-- | test/test_cmdline.py | 2 | ||||
-rw-r--r-- | test/test_coverage.py | 2 |
21 files changed, 42 insertions, 44 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index b1634ca8..9d65e6f7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,9 +1,9 @@ -------------------------------
-CHANGE HISTORY for coverage.py
-------------------------------
+---------------------------
+Change history for Coverage
+---------------------------
-Version 3.0b2
--------------
+Version 3.0b2, 30 April 2009
+----------------------------
HTML reporting, and continued refactoring.
@@ -33,9 +33,8 @@ Version 3.0b1, 7 March 2009 Major overhaul.
-- Coverage.py is now a package rather than a module, so the name is a bit of a
- misnomer, since there is no longer a file named coverage.py. Functionality
- has been split into classes.
+- Coverage is now a package rather than a module. Functionality has been split
+ into classes.
- The trace function is implemented in C for speed. Coverage runs are now
much faster.
@@ -48,7 +47,7 @@ Major overhaul. - The singleton coverage object is only created if the module-level functions
are used. This maintains the old interface while allowing better
- programmatic use of coverage.py.
+ programmatic use of Coverage.
- The minimum supported Python version is 2.3.
@@ -1,4 +1,4 @@ -# Makefile for utility work on coverage.py +# Makefile for utility work on Coverage. default: @echo "* No default action *" @@ -1,9 +1,9 @@ Coverage: code coverage testing for Python
-Coverage.py is a Python package that measures code coverage during test
-execution. It uses the code analysis tools and tracing hooks provided in the
-Python standard library to determine which lines are executable, and which have
-been executed.
+Coverage measures code coverage, typically during test execution. It uses the
+code analysis tools and tracing hooks provided in the Python standard library
+to determine which lines are executable, and which have been executed.
For more information, see http://nedbatchelder.com/code/modules/coverage.html
The code is hosted at http://bitbucket.org/ned/coveragepy
+
@@ -53,10 +53,10 @@ x Tricky swapping of collector like figleaf, pycov, et al. (Don't need to do - Why can't you specify execute (-x) and report (-r) in the same invocation?
Maybe just because -x needs the rest of the command line?
-- How will coverage.py package install over coverage.py module?
+- How will Coverage package install over coverage.py module?
- Support 2.3 - 3.0?
http://pythonology.blogspot.com/2009/02/making-code-run-on-python-20-through-30.html
-- Use a .coveragerc file to control coverage.py without the programmatic API.
+- Use a .coveragerc file to control Coverage without the programmatic API.
- An inference mode that marks lines as executed if they "must have been" executed:
class definitions, etc, when coverage is started after the class is defined.
- Different categories of exclude pragma? So you can enable and disable them
@@ -144,7 +144,7 @@ x Tricky swapping of collector like figleaf, pycov, et al. (Don't need to do - Tests about parallel mode.
+ Tests about assigning a multi-line string.
- Tests about tricky docstrings.
-- Coverage test coverage.py!
+- Coverage test Coverage!
- Tests that tracing stops after calling stop()
- More intensive thread testing.
- Tests about the "import __main__" in cmdline.py
diff --git a/coverage/annotate.py b/coverage/annotate.py index ee04910a..ece63332 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -1,4 +1,4 @@ -"""Source file annotation for coverage.py""" +"""Source file annotation for Coverage.""" import os, re diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 39d92927..dae3adf8 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -1,4 +1,4 @@ -"""Command-line support for coverage.py""" +"""Command-line support for Coverage.""" import getopt, sys @@ -53,7 +53,7 @@ COVERAGE_FILE environment variable to save it somewhere else. class CoverageScript: - """The command-line interface to coverage.py""" + """The command-line interface to Coverage.""" def __init__(self): import coverage @@ -61,7 +61,7 @@ class CoverageScript: self.coverage = coverage.coverage() def help(self, error=None): - """Display an error message, or the usage for coverage.py.""" + """Display an error message, or the usage for Coverage.""" if error: print error print "Use -h for help." @@ -69,7 +69,7 @@ class CoverageScript: print USAGE % self.covpkg.__dict__ def command_line(self, argv, help_fn=None): - """The bulk of the command line interface to coverage.py. + """The bulk of the command line interface to Coverage. `argv` is the argument list to process. `help_fn` is the help function to use when something goes wrong. @@ -182,7 +182,7 @@ class CoverageScript: def main(): - """The main entrypoint to coverage.py. + """The main entrypoint to Coverage. This is installed as the script entrypoint. diff --git a/coverage/codeunit.py b/coverage/codeunit.py index cc72f5c0..a43ca942 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -1,4 +1,4 @@ -"""Code unit (module) handling for coverage.py""" +"""Code unit (module) handling for Coverage.""" import glob, os, types diff --git a/coverage/collector.py b/coverage/collector.py index 226e306f..ea6ef58b 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -1,4 +1,4 @@ -"""Raw data collector for coverage.py.""" +"""Raw data collector for Coverage.""" import sys, threading diff --git a/coverage/control.py b/coverage/control.py index 6d3187d6..55070535 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -1,4 +1,4 @@ -"""Core control stuff for coverage.py""" +"""Core control stuff for Coverage.""" import os, socket, sys @@ -24,7 +24,7 @@ class coverage: self.sysprefix = self.file_locator.abs_file(sys.prefix) self.collector = Collector(self.should_trace) - self.data = CoverageData(collector="coverage.py v%s" % __version__) + self.data = CoverageData(collector="coverage v%s" % __version__) # The default exclude pattern. self.exclude('# *pragma[: ]*[nN][oO] *[cC][oO][vV][eE][rR]') diff --git a/coverage/data.py b/coverage/data.py index 7e9d49fb..1d5c5073 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -1,4 +1,4 @@ -"""Coverage data for coverage.py""" +"""Coverage data for Coverage.""" import os, types import cPickle as pickle diff --git a/coverage/html.py b/coverage/html.py index c1207db4..d34aeac7 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -1,4 +1,4 @@ -"""HTML reporting for coverage.py""" +"""HTML reporting for Coverage.""" import os, re, shutil from coverage import __version__ # pylint: disable-msg=W0611 diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index b6715c14..089768b0 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -45,7 +45,7 @@ <div id='footer'>
<div class='content'>
<p>
- <a class='nav' href='http://bitbucket.org/ned/coveragepy/'>coverage.py v{{__version__}}</a>
+ <a class='nav' href='http://bitbucket.org/ned/coveragepy/'>coverage v{{__version__}}</a>
</p>
</div>
</div>
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 5290bbd3..d9d324c4 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -1,4 +1,4 @@ -/* CSS styles for coverage.py */ +/* CSS styles for Coverage. */ /* Page-wide styles */ html, body, h1, h2, h3, p, td, th { margin: 0; diff --git a/coverage/misc.py b/coverage/misc.py index a6d9f20b..398f9b27 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -1,4 +1,4 @@ -"""Miscellaneous stuff for coverage.py""" +"""Miscellaneous stuff for Coverage.""" def nice_pair(pair): """Make a nice string representation of a pair of numbers. diff --git a/coverage/parser.py b/coverage/parser.py index b1997b11..e00687bf 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -1,4 +1,4 @@ -"""Code parsing for coverage.py""" +"""Code parsing for Coverage.""" import re, token, tokenize, types import cStringIO as StringIO diff --git a/coverage/report.py b/coverage/report.py index fb8a56a4..d4aeb4df 100644 --- a/coverage/report.py +++ b/coverage/report.py @@ -1,4 +1,4 @@ -"""Reporter foundation for coverage.py""" +"""Reporter foundation for Coverage.""" import os from coverage.codeunit import code_unit_factory diff --git a/coverage/tracer.c b/coverage/tracer.c index e5d1e06a..2831264a 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -1,4 +1,4 @@ -// C-based Tracer for coverage.py
+// C-based Tracer for Coverage.
#include "Python.h"
#include "compile.h" // in 2.3, this wasn't part of Python.h
@@ -2,10 +2,9 @@ """Code coverage testing for Python -Coverage.py is a Python package that measures code coverage during test -execution. It uses the code analysis tools and tracing hooks provided in the -Python standard library to determine which lines are executable, and which have -been executed. +Coverage measures code coverage, typically during test execution. It uses the +code analysis tools and tracing hooks provided in the Python standard library +to determine which lines are executable, and which have been executed. """ classifiers = """ diff --git a/test/coveragetest.py b/test/coveragetest.py index e76a9910..65e69cf8 100644 --- a/test/coveragetest.py +++ b/test/coveragetest.py @@ -102,12 +102,12 @@ class CoverageTest(unittest.TestCase): def checkCoverage(self, text, lines, missing="", excludes=None, report=""): # We write the code into a file so that we can import it. - # coverage.py wants to deal with things as modules with file names. + # Coverage wants to deal with things as modules with file names. modname = self.getModuleName() self.makeFile(modname, text) - # Start up coverage.py + # Start up Coverage. cov = coverage.coverage() cov.erase() for exc in excludes or []: @@ -117,7 +117,7 @@ class CoverageTest(unittest.TestCase): # Import the python file, executing it. mod = self.importModule(modname) - # Stop coverage.py + # Stop Coverage. cov.stop() # Clean up our side effects diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 85166040..4da542da 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -8,7 +8,7 @@ from coveragetest import CoverageTest class CmdLineTest(CoverageTest): - """Tests of command-line processing for coverage.py.""" + """Tests of command-line processing for Coverage.""" def help_fn(self, error=None): raise Exception(error or "__doc__") diff --git a/test/test_coverage.py b/test/test_coverage.py index cc30ecda..3a5989d1 100644 --- a/test/test_coverage.py +++ b/test/test_coverage.py @@ -1,4 +1,4 @@ -# test coverage.py +"""Tests for Coverage.""" # Copyright 2004-2009, Ned Batchelder # http://nedbatchelder.com/code/modules/coverage.html |