Commits

Ned Batchelder committed e6f11f2

Use the patch from <<issue 23>> to get Cobertura to find source files.

Comments (0)

Files changed (1)

coverage/xmlreport.py

         xclass.appendChild(xlines)
         className = fname.replace('.', '_')
         xclass.setAttribute("name", className)
-        xclass.setAttribute("filename", os.path.split(cu.filename)[1])
+        ext = os.path.splitext(cu.filename)[1]
+        xclass.setAttribute("filename", cu.name + ext)
         xclass.setAttribute("complexity", "0.0")
 
         # For each statement, create an XML 'line' element.