Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
9c761869
Commit
9c761869
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-313
: Resolve access to coverage as module
parent
7395aac2
No related branches found
No related tags found
1 merge request
!207
Resolve L2SS-313
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
tangostationcontrol/tangostationcontrol/beam/__init__.py
+0
-0
0 additions, 0 deletions
tangostationcontrol/tangostationcontrol/beam/__init__.py
tangostationcontrol/tox.ini
+20
-8
20 additions, 8 deletions
tangostationcontrol/tox.ini
with
21 additions
and
8 deletions
.gitignore
+
1
−
0
View file @
9c761869
...
...
@@ -22,6 +22,7 @@ tangostationcontrol/dist
tangostationcontrol/docs/build
**/coverage.xml
**/.coverage
**/.ipynb_checkpoints
**/pending_log_messages.db
**/.eggs
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/beam/__init__.py
0 → 100644
+
0
−
0
View file @
9c761869
This diff is collapsed.
Click to expand it.
tangostationcontrol/tox.ini
+
20
−
8
View file @
9c761869
...
...
@@ -26,19 +26,31 @@ setenv = TESTS_DIR=./tangostationcontrol/integration_test
commands
=
stestr
run
--serial
{posargs}
; The access to coverage as module is a bit of an ugly hack. This is due to
; cover inheriting testenv which has `sitepackages = True`, meaning that global
; packages can be accessed by the tox environment. Our tango images already have
; coverage system wide installed, however, the system wide installation will
; never look inside tox its virtualenv for packages. So accessing stestr and
; others fail.. We can't remove `sitepackages = True` either as we need access
; to tango and installing this package is non-trivial. The solution is to
; prevent calling binaries directly and utilizing python to resolve the
; requested module. In addition stestr does not natively support generating
; coverage reports which is where the `PYTHON=python -m coverage run....` comes
; from.
[testenv:cover]
allowlist_externals
=
coverage
setenv
=
VIRTUAL_ENV
=
{envdir}
PYTHON
=
python -m coverage run --source tangostationcontrol --parallel-mode
deps
=
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt
commands
=
coverage
erase
stestr
run
{posargs}
coverage
combine
coverage
html
-d
cover
coverage
xml
-o
coverage.xml
coverage
report
python
-m
coverage
erase
stestr
run
{posargs}
python
-m
coverage
combine
python
-m
coverage
html
-d
cover
python
-m
coverage
xml
-o
coverage.xml
python
-m
coverage
report
; TODO(Corne): Integrate Hacking to customize pep8 rules
[testenv:pep8]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment