Coverage (#10)

* Code coverage support

* split requirements
This commit is contained in:
Haidara Mohamed El Mouctar 2017-11-21 14:43:36 +01:00 committed by GitHub
parent 1855015c67
commit b047ed9bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 4 deletions

View file

@ -13,8 +13,11 @@ before_install:
install:
- pip install -q ansible==$ANSIBLE_VERSION
- pip install -q -r requirements.txt
- pip install -q -r requirements_tests.txt
- pip install .
script:
- make test
after_success:
- coveralls

View file

@ -2,6 +2,7 @@
[![Build Status](https://travis-ci.org/haidaraM/ansible-playbook-grapher.svg?branch=master)](https://travis-ci.org/haidaraM/ansible-playbook-grapher)
[![PyPI version](https://badge.fury.io/py/ansible-playbook-grapher.svg)](https://badge.fury.io/py/ansible-playbook-grapher)
[![Coverage Status](https://coveralls.io/repos/github/haidaraM/ansible-playbook-grapher/badge.svg?branch=master)](https://coveralls.io/github/haidaraM/ansible-playbook-grapher?branch=master)
[ansible-playbook-grapher](https://github.com/haidaraM/ansible-playbook-grapher) is a command line tool to create a graph representing your Ansible playbook tasks and roles. The aim of
this project is to quickly have an overview of your playbook.

View file

@ -1,3 +1,3 @@
[pytest]
rootdir = tests
addopts = -v
addopts = -v --cov ansibleplaybookgrapher --cov-report term --cov-report html

4
requirements_tests.txt Normal file
View file

@ -0,0 +1,4 @@
-r requirements.txt
pytest-cov==2.5.1
pytest==3.2.3
coveralls

View file

@ -16,8 +16,8 @@ setup(name=__prog__,
author="HAIDARA Mohamed El Mouctar",
author_email="elmhaidara@gmail.com",
license="MIT",
install_requires=['graphviz==0.8.1', 'colour==0.1.5', 'lxml==4.1.1', 'ansible>=2.4'],
tests_requires=['pytest'],
install_requires=['graphviz==0.8.1', 'colour==0.1.5', 'lxml==4.1.1', 'ansible>=2.4.0'],
tests_requires=['pytest==3.2.3', 'pytest-cov==2.5.1'],
packages=find_packages(exclude=['tests']),
package_data={"ansible-playbook-grapher": ['data/*']},
include_package_data=True,