Test this project with coverage reports

def coverage(reportdir=None, extra=None):
    """Test this project with coverage reports"""

    import coverage as coverage_api
    cov = coverage_api.coverage()
    opts = {'directory': reportdir} if reportdir else {}

    cov.start()
    test(extra)
    cov.stop()
    cov.html_report(**opts)