def append_coverage(self, new_coverage): ''' Appends the given coverage to the existing coverage FIXME: must be synchronized - thread friendly ''' old_coverage = self.load_coverage() old_coverage.append(new_coverage) utils.save_coverage(old_coverage, self.coverage_file)
def reset_coverage(self): ''' Cleans coverage from previous runs ''' utils.save_coverage([], self.coverage_file)