Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
e5c38fb9
Commit
e5c38fb9
authored
9 years ago
by
Jan Rinze Peterzon
Browse files
Options
Downloads
Patches
Plain Diff
Task #8571: Added coverage testing for component t_messages.
parent
a6b9bac3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
LCS/Messaging/python/messaging/test/t_messages.run
+29
-0
29 additions, 0 deletions
LCS/Messaging/python/messaging/test/t_messages.run
with
30 additions
and
0 deletions
.gitattributes
+
1
−
0
View file @
e5c38fb9
...
@@ -2614,6 +2614,7 @@ LCS/Messaging/python/messaging/test/t_messagebus.py -text
...
@@ -2614,6 +2614,7 @@ LCS/Messaging/python/messaging/test/t_messagebus.py -text
LCS/Messaging/python/messaging/test/t_messagebus.run -text
LCS/Messaging/python/messaging/test/t_messagebus.run -text
LCS/Messaging/python/messaging/test/t_messagebus.sh -text
LCS/Messaging/python/messaging/test/t_messagebus.sh -text
LCS/Messaging/python/messaging/test/t_messages.py -text
LCS/Messaging/python/messaging/test/t_messages.py -text
LCS/Messaging/python/messaging/test/t_messages.run -text
LCS/Messaging/python/messaging/test/t_messages.sh -text
LCS/Messaging/python/messaging/test/t_messages.sh -text
LCS/Messaging/src/CMakeLists.txt -text
LCS/Messaging/src/CMakeLists.txt -text
LCS/Messaging/src/DefaultSettings.cc -text
LCS/Messaging/src/DefaultSettings.cc -text
...
...
This diff is collapsed.
Click to expand it.
LCS/Messaging/python/messaging/test/t_messages.run
0 → 100755
+
29
−
0
View file @
e5c38fb9
#!/bin/sh -e
# Run the unit test
# either with or without code coverage measurements,
# depending wheter coverage has been installed
if
type
"coverage"
>
/dev/null
;
then
#run test using python coverage tool
#erase previous results
coverage erase
#setup coverage config file
printf
"[report]
\n
exclude_lines =
\n
if __name__ == .__main__.
\n
def main
\n
"
>
.coveragerc
coverage run
--branch
--include
=
*
Messaging/python
*
t_messages.py
RESULT
=
$?
if
[
$RESULT
-eq
0
]
;
then
echo
" *** Code coverage results *** "
coverage report
-m
echo
" *** End coverage results *** "
fi
exit
$RESULT
else
#coverage not available
echo
"Please run: 'pip install coverage' to enable code coverage reporting of the unit tests"
#run plain test script
python t_messages.py
fi
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