lib/reporters/cobertura.js
function Cobertura(runner) {
	var jade = require('jade')
	jade.doctypes.cobertura = '<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-03.dtd">'
	var file = __dirname + '/templates/cobertura.jade', 
	str = fs.readFileSync(file, 'utf8'), 
	fn = jade.compile(str, { filename: file }), 
	self = this

	JSONCov.call(this, runner, false)

	runner.on('end', 
	function(){
		self.cov.src = __dirname.split('node_modules')[0]
		process.stdout.write(fn({
			cov: self.cov
		}))
	})
}
function Cobertura(runner) {
	var jade = require('jade')
	jade.doctypes.cobertura = '<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-03.dtd">'
	var file = __dirname + '/templates/cobertura.jade', 
	str = fs.readFileSync(file, 'utf8'), 
	fn = jade.compile(str, { filename: file }), 
	self = this

	JSONCov.call(this, runner, false)

	runner.on('end', 
	function(){
		self.cov.src = __dirname.split('node_modules')[0]
		process.stdout.write(fn({
			cov: self.cov
		}))
	})
}
function Cobertura ( runner ) { var jade = require ( 'jade' ) jade . doctypes . cobertura = '<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-03.dtd">' var file = __dirname + '/templates/cobertura.jade' , str = fs . readFileSync ( file , 'utf8' ) , fn = jade . compile ( str , { filename : file } ) , self = this JSONCov . call ( this , runner , false ) runner . on ( 'end' , function ( ) { self . cov . src = __dirname . split ( 'node_modules' ) [ 0 ] process . stdout . write ( fn ( { cov : self . cov } ) ) } ) }
Initialize a new `Cobertura` reporter.

@param {Runner} runner
@api public
Initialize a new Cobertura reporter .