Timo Tietavainen | dada846 | 2019-11-27 11:50:01 +0200 | [diff] [blame] | 1 | # 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] |
| 23 | envlist = py37,flake8 |
| 24 | |
| 25 | [testenv] |
| 26 | deps = |
| 27 | pytest |
| 28 | coverage |
| 29 | pytest-cov |
| 30 | setenv = |
| 31 | DBAAS_SERVICE_HOST=localhost |
| 32 | DBAAS_SERVICE_PORT=6379 |
| 33 | commands = |
| 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] |
| 38 | basepython = python3.7 |
| 39 | skip_install = true |
| 40 | deps = flake8 |
| 41 | commands = flake8 setup.py ricsdl |
| 42 | |
| 43 | [flake8] |
| 44 | #Do not warn about line lengths more than 79 characters |
| 45 | ignore = E501 |
| 46 | |
| 47 | [pytest] |
| 48 | junit_family=legacy |