From: SANDEEP KUMAR JAISAWAL Date: Fri, 18 Nov 2022 11:38:33 +0000 (+0530) Subject: Adding tox file for CI tests X-Git-Tag: 1.0.0~21 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=fbda8c397a77627d4def33076b7a9d696be81866;p=aiml-fw%2Fawmf%2Ftm.git Adding tox file for CI tests Issue-id: AIMLWF-5 Signed-off-by: SANDEEP KUMAR JAISAWAL Change-Id: I3e73219f0228a85013bed926f6bcddf86a67ec82 --- 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