From 24b9eb135b9146b6edfb811eaaeab4150990308c Mon Sep 17 00:00:00 2001 From: "minhac.lee" Date: Thu, 8 Dec 2022 10:14:41 +0900 Subject: [PATCH] Adding tox.ini to check coverage Issue-Id: AIMLFW-5 Signed-off-by: minhac.lee Change-Id: I39218acfbab179b51284cd2a44e4fb19638383c9 --- tox.ini | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tox.ini 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 -- 2.16.6