def parse_coverage(report_dir, coveragerc):
 report_dir.makedirs_p()
 msg = colorize('green', 'Combining coverage reports')
 print msg
 sh('coverage combine --rcfile={}'.format(coveragerc))
 msg = colorize('green', 'Generating coverage reports')
 print msg
 sh('coverage html --rcfile={}'.format(coveragerc))
 sh('coverage xml --rcfile={}'.format(coveragerc))
 sh('coverage report --rcfile={}'.format(coveragerc))

def parse_coverage ( report_dir , coveragerc ) : report_dir . makedirs_p ( ) msg = colorize ( 'green' , 'Combining coverage reports' ) print msg sh ( 'coverage combine --rcfile={}' . format ( coveragerc ) ) msg = colorize ( 'green' , 'Generating coverage reports' ) print msg sh ( 'coverage html --rcfile={}' . format ( coveragerc ) ) sh ( 'coverage xml --rcfile={}' . format ( coveragerc ) ) sh ( 'coverage report --rcfile={}' . format ( coveragerc ) )
generate coverage reports for bok-choy or a11y tests .