Adding tox file for CI tests 13/9713/1
authorSANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Fri, 18 Nov 2022 11:38:33 +0000 (17:08 +0530)
committerSANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Fri, 18 Nov 2022 11:38:33 +0000 (17:08 +0530)
Issue-id: AIMLWF-5

Signed-off-by: SANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Change-Id: I3e73219f0228a85013bed926f6bcddf86a67ec82

tox.ini [new file with mode: 0644]

diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
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