Commits

Kumar McMillan committed af3d9e0

.coverage file is now saved again (#439). Also bump to 1.1.2

Comments (0)

Files changed (7)

+1.1.2
+
+- Fixed regression where the .coverage file was not saved (#439).
+  Patch by Timothée Peignier.
+
 1.1.1
 
 - Fixed missing nose.sphinx module in source distribution (#436).
 - Lots of improvements to the attrib plugin by Bobby Impollonia (#412, #411,
   #324 and #381)
 - Code coverage plugin now uses native HTML generation when coverage 3 is
-  installed (#264). Thanks to Timothee Peignier for the patch.
+  installed (#264). Thanks to Timothée Peignier for the patch.
 - Xunit plugin now shows test run time in fractions of a second (#317)
 - @attr (from nose.plugins.attrib) can now be used as a class decorator (#292)
 - Fixes Xunit plugin to handle non-UTF8 characters (#395)
 # The short X.Y version.
 version = '1.1'
 # The full version, including alpha/beta/rc tags.
-release = '1.1.1'
+release = '1.1.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

functional_tests/doc_tests/test_coverage_html/coverage_html.rst

     >>> import os
     >>> support = os.path.join(os.path.dirname(__file__), 'support')
     >>> cover_html_dir = os.path.join(support, 'cover')
+    >>> cover_file = os.path.join(os.getcwd(), '.coverage')
+    >>> if os.path.exists(cover_file):
+    ...     os.unlink(cover_file)
+    ...
 
 
 The console coverage output is printed, as normal.
 
+    >>> from nose.plugins.cover import Coverage
     >>> cover_html_dir = os.path.join(support, 'cover')
-    >>> from nose.plugins.cover import Coverage
     >>> run(argv=[__file__, '-v', '--with-coverage', '--cover-package=blah', 
     ...           '--cover-html', '--cover-html-dir=' + cover_html_dir,
     ...           support, ], 
 `coverage.py`_ docs.
 
 .. hide this from the actual documentation:
+    >>> os.path.exists(cover_file)
+    True
     >>> os.path.exists(os.path.join(cover_html_dir, 'index.html'))
     True
     >>> os.path.exists(os.path.join(cover_html_dir, 'blah.html'))
 from nose.tools import with_setup
 
 __author__ = 'Jason Pellerin'
-__versioninfo__ = (1, 1, 1)
+__versioninfo__ = (1, 1, 2)
 __version__ = '.'.join(map(str, __versioninfo__))
 
 __all__ = [

nose/plugins/cover.py

         """
         log.debug("Coverage report")
         self.coverInstance.stop()
+        self.coverInstance.save()
         modules = [ module
                     for name, module in sys.modules.items()
                     if self.wantModuleCoverage(name, module) ]
 .SH COPYRIGHT
 LGPL
 
-.\" Generated by docutils manpage writer on 2011-07-27 17:21.
+.\" Generated by docutils manpage writer on 2011-07-30 18:43.
 .\" 
 import sys
 import os
 
-VERSION = '1.1.1'
+VERSION = '1.1.2'
 py_vers_tag = '-%s.%s' % sys.version_info[:2]
 
 test_dirs = ['functional_tests', 'unit_tests', os.path.join('doc','doc_tests'), 'nose']