From: minhac.lee Date: Thu, 8 Dec 2022 01:14:41 +0000 (+0900) Subject: Adding tox.ini to check coverage X-Git-Tag: 1.0.0~1 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=24b9eb135b9146b6edfb811eaaeab4150990308c;p=aiml-fw%2Fathp%2Ftps%2Fkubeflow-adapter.git Adding tox.ini to check coverage Issue-Id: AIMLFW-5 Signed-off-by: minhac.lee Change-Id: I39218acfbab179b51284cd2a44e4fb19638383c9 --- diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..3882fb8 --- /dev/null +++ b/tox.ini @@ -0,0 +1,46 @@ +# ================================================================================== +# +# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# +# 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.8 +deps= + pytest + coverage + pytest-cov + unittest + mock + kfp + kfp-pipeline-spec + kfp-server-api + Flask + Flask-API + Flask-Cors + requests + Werkzeug + +setenv = cd = {toxinidir}/test +commands = + pip3 install {toxinindir} + + pytest --cov {toxinidir}/kfadapter --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=10 --junitxaml=/tmp/tests.xml + coverage xml -i \ No newline at end of file