summaryrefslogtreecommitdiff
path: root/test/test_testplugin.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-07-12 07:30:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-07-12 07:30:25 -0400
commitf26807da13afca5aa9b7d046809abeb4006f7f90 (patch)
tree5e6e84cce7af2a5b03940f12330f201a45cc6c38 /test/test_testplugin.py
parentf4975abef6f8c070523b713aa693afbb76170de8 (diff)
downloadpython-coveragepy-f26807da13afca5aa9b7d046809abeb4006f7f90.tar.gz
Remove the test runner plugins for now.
Diffstat (limited to 'test/test_testplugin.py')
-rw-r--r--test/test_testplugin.py46
1 files changed, 0 insertions, 46 deletions
diff --git a/test/test_testplugin.py b/test/test_testplugin.py
deleted file mode 100644
index b012ca6..0000000
--- a/test/test_testplugin.py
+++ /dev/null
@@ -1,46 +0,0 @@
-"""Tests of the test-runner plugins."""
-
-import py
-import unittest
-from nose.plugins import PluginTester
-from coverage.runners.noseplugin import Coverage
-
-class TestCoverage(PluginTester, unittest.TestCase):
- """Test the nose plugin."""
-
- activate = '--with-coverage' # enables the plugin
- plugins = [Coverage()]
- args = ['--cover-report=report']
-
- @py.test.mark.skipif(True) # "requires nose test runner"
- def test_output(self):
- assert "Processing coverage..." in self.output, (
- "got: %s" % self.output)
- def makeSuite(self):
- class TC(unittest.TestCase):
- def runTest(self):
- raise ValueError("Coverage down")
- return unittest.TestSuite([TC()])
-
-
-pytest_plugins = ['pytester']
-def test_functional(testdir):
- """Test the py.test plugin."""
-
- testdir.makepyfile("""
- def f():
- x = 42
- def test_whatever():
- pass
- """)
- result = testdir.runpytest("--cover-report=annotate")
- assert result.ret == 0
- assert result.stdout.fnmatch_lines([
- '*Processing Coverage*'
- ])
- coveragefile = testdir.tmpdir.join(".coverage")
- assert coveragefile.check()
- # XXX try loading it?
-
-# Keep test_functional from running in nose:
-test_functional.__test__ = False