17 lines
345 B
Python
17 lines
345 B
Python
import subprocess
|
|
|
|
import click
|
|
|
|
|
|
@click.command()
|
|
@click.argument('path', default='snakeeyes')
|
|
def cli(path):
|
|
"""
|
|
Run a test coverage report.
|
|
|
|
:param path: Test coverage path
|
|
:return: Subprocess call result
|
|
"""
|
|
cmd = 'py.test --cov-report term-missing --cov {0}'.format(path)
|
|
return subprocess.call(cmd, shell=True)
|