lib/reporters/XUnit.js
function (ppunit, writer) {
    writer.useColors = false

    BaseReporter.call(this, ppunit, writer)

    var self = this

    ppunit.on('finish', function () {
        writer.write(
            self.tag(
                'testsuite'
              , {
                    name: 'PPUnit Tests'
                  , tests: ppunit.stats.tests
                  , failures: ppunit.stats.failures
                  , errors: ppunit.stats.failures
                  , timestamp: (new Date).toUTCString()
                  , time: (ppunit.stats.duration > 0) ? (ppunit.stats.duration / 1000) : 0
                }
              , false
            )
        )

        ppunit.allTests.forEach(function (test) {
            if (test.type === Test.TYPE.ROOT) {
                return
            }

            self.printTest(test)
        })

        writer.write('</testsuite>')
    })
}
function (ppunit, writer) {
    writer.useColors = false

    BaseReporter.call(this, ppunit, writer)

    var self = this

    ppunit.on('finish', function () {
        writer.write(
            self.tag(
                'testsuite'
              , {
                    name: 'PPUnit Tests'
                  , tests: ppunit.stats.tests
                  , failures: ppunit.stats.failures
                  , errors: ppunit.stats.failures
                  , timestamp: (new Date).toUTCString()
                  , time: (ppunit.stats.duration > 0) ? (ppunit.stats.duration / 1000) : 0
                }
              , false
            )
        )

        ppunit.allTests.forEach(function (test) {
            if (test.type === Test.TYPE.ROOT) {
                return
            }

            self.printTest(test)
        })

        writer.write('</testsuite>')
    })
}
function ( ppunit , writer ) { writer . useColors = false BaseReporter . call ( this , ppunit , writer ) var self = this ppunit . on ( 'finish' , function ( ) { writer . write ( self . tag ( 'testsuite' , { name : 'PPUnit Tests' , tests : ppunit . stats . tests , failures : ppunit . stats . failures , errors : ppunit . stats . failures , timestamp : ( new Date ) . toUTCString ( ) , time : ( ppunit . stats . duration > 0 ) ? ( ppunit . stats . duration / 1000 ) : 0 } , false ) ) ppunit . allTests . forEach ( function ( test ) { if ( test . type === Test . TYPE . ROOT ) { return } self . printTest ( test ) } ) writer . write ( '</testsuite>' ) } ) }
Outputs xunit compatible xml for reporting test stats

@extends BaseReporter
Outputs xunit compatible xml for reporting test stats