Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
synergy
o3skim
Commits
92197b1c
Commit
92197b1c
authored
Jan 28, 2021
by
borja.sanchis
Browse files
Complete SQA with new unit and functional tests with pytest
parent
ada7d97e
Changes
4
Hide whitespace changes
Inline
Side-by-side
.sqa/config.yml
View file @
92197b1c
...
...
@@ -2,36 +2,51 @@ config:
project_repos
:
o3skim
:
repo
:
'
https://git.scc.kit.edu/synergy.o3as/o3skim.git'
branch
:
master
dockerhub
:
synergyimk/o3s
kim
dockertag
:
latest
branch
:
test
#
dockerhub: synergyimk/o3
a
s
#
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
...
...
.sqa/docker-compose.yml
View file @
92197b1c
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
setup.cfg
View file @
92197b1c
...
...
@@ -25,3 +25,9 @@ install_requires =
scripts =
main
[build_sphinx]
project = o3skim
version = 0.1
release = 0.1.0
source-dir = docs
tox.ini
View file @
92197b1c
[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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment