'Generate coverage information in the coverage file in the
directory specified by the temp-directory option.'

def opt_coverage(self):

    import trace
    self.tracer = trace.Trace(count=1, trace=0)
    sys.settrace(self.tracer.globaltrace)
    self['coverage'] = True
