Run coverage programmatically