From fbda8c397a77627d4def33076b7a9d696be81866 Mon Sep 17 00:00:00 2001 From: SANDEEP KUMAR JAISAWAL Date: Fri, 18 Nov 2022 17:08:33 +0530 Subject: [PATCH] Adding tox file for CI tests Issue-id: AIMLWF-5 Signed-off-by: SANDEEP KUMAR JAISAWAL Change-Id: I3e73219f0228a85013bed926f6bcddf86a67ec82 --- tox.ini | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..0e9572f --- /dev/null +++ b/tox.ini @@ -0,0 +1,33 @@ +# ================================================================================== +# Copyright (c) 2022 Nordix +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ================================================================================== +# + +[tox] +envlist = code +skipsdist = true + +# basic test and coverage job +[testenv:code] +basepython = python3.7 +deps= + pytest + coverage + pytest-cov + connexion + +setenv = TESTS_BASE_PATH = {toxinidir}/tests +commands = + pytest --cov-append --cov {toxinidir} --cov-report xml --cov-report term-missing --cov-report html \ No newline at end of file -- 2.16.6