blob: aed734e45b7d986185ce8448e0da025bb3a60abe [file] [log] [blame]
Timo Tietavainendada8462019-11-27 11:50:01 +02001# Copyright (c) 2019 AT&T Intellectual Property.
2# Copyright (c) 2018-2019 Nokia.
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#
17# This source code is part of the near-RT RIC (RAN Intelligent Controller)
18# platform project (RICP).
19#
20
21
22[tox]
23envlist = py37,flake8
24
25[testenv]
26deps =
27 pytest
28 coverage
29 pytest-cov
30setenv =
31 DBAAS_SERVICE_HOST=localhost
32 DBAAS_SERVICE_PORT=6379
33commands =
34 pytest --junitxml xunit-results.xml --cov ricsdl --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70
35 coverage xml -i
36
37[testenv:flake8]
38basepython = python3.7
39skip_install = true
40deps = flake8
41commands = flake8 setup.py ricsdl
42
43[flake8]
44#Do not warn about line lengths more than 79 characters
45ignore = E501
46
47[pytest]
48junit_family=legacy