Commit 670a68fd authored by borja.sanchis's avatar borja.sanchis
Browse files

Merge branch 'test' into 'master'

Complete SQA with new unit and functional tests with pytest

See merge request !30
parents ada7d97e 92197b1c
......@@ -2,36 +2,51 @@ config:
project_repos:
o3skim:
repo: 'https://git.scc.kit.edu/synergy.o3as/o3skim.git'
branch: master
dockerhub: synergyimk/o3skim
dockertag: latest
branch: test
# dockerhub: synergyimk/o3as
# dockertag: latest
sqa_criteria:
qc_style:
repos:
o3skim:
container: o3skim-testing
container: testing
tox:
tox_file: /o3skim-testing/tox.ini
tox_file: /o3skim/tox.ini
testenv:
- pep8
- stylecheck
qc_coverage:
repos:
o3skim:
container: o3skim-testing
container: testing
tox:
tox_file: /o3skim-testing/tox.ini
testenv:
- cover
- cobertura
tox_file: /o3skim/tox.ini
testenv:
- unittesting
qc_functional:
repos:
o3skim:
container: testing
tox:
tox_file: /o3skim/tox.ini
testenv:
- functional
qc_security:
repos:
o3skim:
container: o3skim-testing
container: testing
tox:
tox_file: /o3skim-testing/tox.ini
tox_file: /o3skim/tox.ini
testenv:
- bandit
qc_doc:
repos:
o3skim:
container: testing
tox:
tox_file: /o3skim/tox.ini
testenv:
- docs
#environment:
# LANG: C.UTF-8
......
version: "3.6"
services:
o3skim-testing:
testing:
image: "indigodatacloud/ci-images:python3.6"
hostname: "o3skim-testing"
container_name: "testing"
volumes:
- type: bind
source: ./o3skim
target: /o3skim-testing
- type: bind
source: ./o3skim
target: /o3skim
......@@ -25,3 +25,9 @@ install_requires =
scripts =
main
[build_sphinx]
project = o3skim
version = 0.1
release = 0.1.0
source-dir = docs
[tox]
minversion = 1.6
skipsdist = True
envlist = clean,pep8,py36,report
envlist = clean,stylecheck,py36,report
[testenv]
commands = pytest --basetemp="{envtmpdir}" \
......@@ -19,7 +19,7 @@ deps =
pytest-xdist
pytest-cov
depends =
{pep8, py36}: clean
py36: clean
report: py36
setenv =
VIRTUAL_ENV={envdir}
......@@ -28,11 +28,13 @@ setenv =
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=160
# Environments ------------------------------------------------------
[testenv:clean]
deps = coverage
skip_install = true
commands =
coverage erase
commands = coverage erase
[testenv:report]
deps = coverage
......@@ -41,8 +43,37 @@ commands =
coverage report
coverage html
[testenv:pep8]
deps =flake8
[testenv:stylecheck]
deps = flake8
envdir = {toxworkdir}/shared
commands = - flake8 --format=pylint --output-file=flake8.log
[testenv:unittesting]
envdir = {toxworkdir}/shared
commands = pytest --basetemp="{envtmpdir}" \
--confcutdir=".." \
--numprocesses='auto' \
--cov="o3skim" \
--cov-report=term \
o3skim
[testenv:functional]
envdir = {toxworkdir}/shared
commands = pytest --basetemp="{envtmpdir}" \
--confcutdir=".." \
--numprocesses='auto' \
--cov="o3skim" \
--cov-report=term \
tests
[testenv:bandit]
deps = bandit
envdir = {toxworkdir}/shared
commands = bandit -r o3skim -x tests
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
envdir = {toxworkdir}/shared
commands = sphinx-build docs docs/_build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment