From 064b80e0cd7377d0161db93f09fcb269c259705d Mon Sep 17 00:00:00 2001 From: Nabarun Pal Date: Sun, 6 Oct 2019 09:21:22 +0530 Subject: [PATCH] Moves coverage report generation to pytest from nosetests Adds pytest-cov to requirements --- test-requirements.txt | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 6200389e4..5e6aac088 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,7 @@ coverage>=4.0.3 nose>=1.3.7 pytest +pytest-cov pluggy>=0.3.1 py>=1.4.31 randomize>=0.13 diff --git a/tox.ini b/tox.ini index 241d294e3..deaa4daf6 100644 --- a/tox.ini +++ b/tox.ini @@ -42,7 +42,7 @@ commands = [testenv:coverage] commands = python -V - nosetests --with-coverage --cover-package=kubernetes.config,kubernetes.watch --cover-tests + pytest --cov=kubernetes/watch --cov=kubernetes/config kubernetes/watch kubernetes/config [testenv:codecov] commands =