From dded191c169daaa45e2792fcfd5c50878fcbe04c Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Tue, 30 Aug 2016 08:20:23 +0300 Subject: [PATCH] Run unit tests on py27 target Doe to cover target inaccessibility, let's use target for unit tests by default. Also this will help on py3 later due to some differences in logic in some helpers. Change-Id: I33b3366953bcf14bd48c32c6cb1fdffe23242923 --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index a9f39a8f4..ac52ec5ca 100644 --- a/tox.ini +++ b/tox.ini @@ -12,9 +12,15 @@ skip_missing_interpreters = True deps = -r{toxinidir}/fuelweb_test/requirements-devops-source.txt -r{toxinidir}/fuelweb_test/requirements.txt + mock>=1.2 + pytest-cov usedevelop = False commands = ./run_system_test.py show-all-groups + # Run unit tests and coverage: groups collect does not cover API changes + py.test --cov-config .coveragerc --cov-report html --cov=core core/_tests + coverage html -d {envlogdir} + coverage report --fail-under 75 [testenv:pep8] # TODO: #deps = hacking==0.7