Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
018c93bb
Commit
018c93bb
authored
Apr 27, 2022
by
Savvas Etairidis
Committed by
oroulet
Apr 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: improve run-tests.sh
parent
863f18a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
README.md
README.md
+10
-0
run-tests.sh
run-tests.sh
+20
-2
No files found.
README.md
View file @
018c93bb
...
...
@@ -196,11 +196,21 @@ All protocol code is under opcua directory
## Running tests:
```
python -m pip install -r requirements.txt
python -m pip install -r dev_requirements.txt
pytest -v -s
```
Or
```
./run-test.sh -v -s
```
## Coverage
```
pytest -v -s --cov asyncua --cov-report=html
```
Or
```
./run-test.sh -v -s --cov asyncua --cov-report=html
```
run-tests.sh
View file @
018c93bb
#!/bin/sh
pytest
#!/bin/sh -e
# Check if virtualenv is available and if it is use it
if
command
-v
virtualenv
;
then
# Create a virtual venv in order not to pollute
# the main python libs if the venv already
# exist no harm is done
virtualenv
-p
python3 venv
.
venv/bin/activate
# install requirements
python3
-m
pip
install
-r
requirements.txt
python3
-m
pip
install
-r
dev_requirements.txt
# Execute pytest and pass along the arguments
# used to call this script
pytest
$@
else
echo
"virtualenv not installed"
# Execute pytest and pass along the arguments
# used to call this script
pytest
$@
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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