From fbc8d14bec58035601b2bfd571c49993c9f907dc Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sat, 18 Feb 2017 21:17:25 +0100 Subject: Configure pytest to run tests and coverage --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 4d3594023..ae781a04c 100644 --- a/tox.ini +++ b/tox.ini @@ -17,3 +17,5 @@ commands = yamllint: python setup.py yamllint unit: nosetests generate_validation: python setup.py generate_validation + + -- cgit v1.2.3 From 16ffe4d70f100c3a36dd44ded4e0a4ed47041741 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 19 Feb 2017 10:48:45 +0100 Subject: Replace nose with pytest --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index ae781a04c..08c3d84d0 100644 --- a/tox.ini +++ b/tox.ini @@ -12,10 +12,10 @@ deps = ansible22: ansible~=2.2 commands = + unit: pytest flake8: flake8 pylint: python setup.py lint yamllint: python setup.py yamllint - unit: nosetests generate_validation: python setup.py generate_validation -- cgit v1.2.3 From 7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 19 Feb 2017 22:43:56 +0100 Subject: Accept extra positional arguments in tox Example: tox -e py35-ansible22-unit -- --collect-only --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 08c3d84d0..13c87f5c4 100644 --- a/tox.ini +++ b/tox.ini @@ -12,8 +12,8 @@ deps = ansible22: ansible~=2.2 commands = - unit: pytest - flake8: flake8 + unit: pytest {posargs} + flake8: flake8 {posargs} pylint: python setup.py lint yamllint: python setup.py yamllint generate_validation: python setup.py generate_validation -- cgit v1.2.3