summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-12-22 20:12:59 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-12-22 20:12:59 -0500
commit8ac6983527c65d4f032dada40edbf71ab3ca2870 (patch)
treef3efbebae46026a8c718ecd63ef8ae9cb8a34f4f
parent92ae8666cc26c01762c096c01154d01275f0d9bf (diff)
downloadpython-coveragepy-8ac6983527c65d4f032dada40edbf71ab3ca2870.tar.gz
A way to run tests on 2.3 and 2.4
-rw-r--r--howto.txt15
-rw-r--r--test_old.sh8
2 files changed, 21 insertions, 2 deletions
diff --git a/howto.txt b/howto.txt
index 406b090..68afa09 100644
--- a/howto.txt
+++ b/howto.txt
@@ -74,8 +74,19 @@
- For complete coverage testing:
- $ COVERAGE_COVERAGE=yes tox
- $ python igor.py combine_html
+ $ make metacov
+
+ This will run coverage under its own measurement. You can do this in
+ different environments (Linux vs. Windows, for example), then copy the
+ data files (.coverage.meta.*) to one machine for combination and
+ reporting. To combine and report:
+
+ $ make metahtml
+
+- For testing on Python <= 2.4:
+
+ - Set up the Python as your current python, probably with a virtualenv.
+ - $ . ./test_old.sh
- To run the Javascript tests:
diff --git a/test_old.sh b/test_old.sh
new file mode 100644
index 0000000..72c3b35
--- /dev/null
+++ b/test_old.sh
@@ -0,0 +1,8 @@
+# Steps to prepare and run coverage.py tests, for Pythons < 2.5
+# This should do the same steps as tox.ini
+easy_install nose==1.2.1 mock==0.6.0
+python setup.py --quiet clean develop
+python igor.py zip_mods install_egg remove_extension
+python igor.py test_with_tracer py
+python setup.py --quiet build_ext --inplace
+python igor.py test_with_tracer c