Skip to content
Snippets Groups Projects
Commit 661f1094 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-938: Interactively start and stop code coverage

parent 82141053
No related branches found
No related tags found
1 merge request!475Draft: L2SS-938: Device server code coverage testing
......@@ -22,4 +22,7 @@ devices = [
for device in devices:
d = DeviceProxy(device)
try:
d.start_coverage()
except Exception:
pass
from tango import DeviceProxy
devices = [
# "STAT/Docker/1", # Docker controls the device containers, so it goes before anything else
"STAT/PSOC/1", # PSOC boot early to detect power delivery failure as fast as possible
"STAT/PCON/1", # PCON boot early because it is responsible for power delivery.
"STAT/APSPU/1", # APS Power Units control other hardware we want to initialise
"STAT/APSCT/1",
"STAT/CCD/1",
"STAT/RECV/1", # RCUs are input for SDP, so initialise them first
"STAT/UNB2/1", # Uniboards host SDP, so initialise them first
"STAT/SDP/1", # SDP controls the mask for SST/XST/BST/Beamlet, so initialise it first
"STAT/BST/1",
"STAT/SST/1",
"STAT/XST/1",
"STAT/Beamlet/1",
"STAT/AntennaField/1", # Accesses RECV
"STAT/TileBeam/1", # Accesses AntennaField
"STAT/DigitalBeam/1", # Accessed SDP and Beamlet
"STAT/TemperatureManager/1",
]
for device in devices:
d = DeviceProxy(device)
try:
d.store_coverage()
except Exception:
pass
......@@ -47,17 +47,21 @@ basepython=python3.7
commands = {envpython} -m testtools.run {posargs}
[testenv:integration]
allowlist_externals = echo
allowlist_externals =
echo
passenv = TANGO_HOST
setenv =
VIRTUAL_ENV={envdir}
TESTS_DIR=./tangostationcontrol/integration_test/{env:TEST_MODULE:default}
PYTHON={envpython} -m coverage run --source tangostationcontrol --parallel-mode
ignore_errors = true
commands =
echo "Integration test directory configured for{env:TESTS_DIR} ({env:TEST_MODULE:default})"
{envpython} -m stestr --version
{envpython} -m coverage --version
{envpython} start.py
{envpython} -m stestr run --serial {posargs}
{envpython} store.py
{envpython} -m coverage combine
{envpython} -m coverage html --omit='*test*' -d cover
{envpython} -m coverage xml -o coverage.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment