def report(self, stream):
        if not self.xcoverageToStdout:
            # This will create a false stream where output will be ignored
            stream = StringIO.StringIO()
            
        super(XCoverage, self).report(stream)
        if not hasattr(self, 'coverInstance'):
            # nose coverage plugin 1.0 and earlier
            import coverage
            self.coverInstance = coverage._the_coverage

        modules = [module
                    for name, module in sys.modules.items()
                    if self.wantModuleCoverage(name, module)]
        log.debug("Coverage report will cover modules: %s", modules)
        morfs = [m.__file__ for m in modules if hasattr(m, '__file__')]
        self.coverInstance.xml_report(morfs, outfile=self.xcoverageFile)
Output code coverage report.
dataset/ETHPy150Open cmheisel/nose-xcover/nosexcover/nosexcover.py/XCoverage.report