diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-12 07:30:25 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-12 07:30:25 -0400 |
commit | 59598ee67a7bea4789e2a851b1bae8e481c82462 (patch) | |
tree | d4c44cd0f649d24b6887d27133417f152a06ed51 /test/test_testplugin.py | |
parent | b153c116dae0c16de7a4c757af6c4f0baf93e13d (diff) | |
download | python-coveragepy-git-59598ee67a7bea4789e2a851b1bae8e481c82462.tar.gz |
Remove the test runner plugins for now.
Diffstat (limited to 'test/test_testplugin.py')
-rw-r--r-- | test/test_testplugin.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/test/test_testplugin.py b/test/test_testplugin.py deleted file mode 100644 index b012ca6a..00000000 --- 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 |