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
commit05444facc0d222b2fcf7e1215ec71f8c9b7b3c04 (patch)
tree576cb9d71f72fa8e16b5107f355a565d8b8cfa71
parente1528a728c830672c3c1a857484d60ae96a68311 (diff)
downloadpython-coveragepy-git-05444facc0d222b2fcf7e1215ec71f8c9b7b3c04.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 406b0903..68afa091 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 00000000..72c3b35c
--- /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