blob: 6f0cb630539d292c84bf206d46387b2839e7b6b5 [file] [log] [blame]
efiacor9b532682019-11-06 11:08:54 +00001# ============LICENSE_START=======================================================
2# Copyright (C) 2019 Nordix Foundation.
3# ================================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# SPDX-License-Identifier: Apache-2.0
17# ============LICENSE_END=========================================================
18
19[tox]
Alexander Mazuruk835ad812021-04-12 18:48:00 +020020envlist = flake8,py39
efiacor9b532682019-11-06 11:08:54 +000021skip_missing_interpreters = true
22
23[testenv]
24deps=
25 -rrequirements.txt
26 pytest
27 coverage
28 pytest-cov
emartin331a93a2019-12-11 11:48:53 +000029 responses==0.10.7
egernug2e3c4072020-08-19 14:57:36 +010030 parameterized==0.7.4
efiacor9b532682019-11-06 11:08:54 +000031setenv =
32 PYTHONPATH={toxinidir}/pmsh_service:{toxinidir}/pmsh_service/mod:{toxinidir}/tests
33commands=
ERIMROB26b76c02020-02-12 11:35:20 +000034 pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term \
35 tests --verbose --cov-fail-under=70
efiacor9b532682019-11-06 11:08:54 +000036
37[testenv:flake8]
38basepython = python3
39skip_install = true
40deps = flake8
41commands = flake8 pmsh_service tests
42
43[flake8]
44max-line-length=100
emartin331a93a2019-12-11 11:48:53 +000045ignore = E999