Skip to content

Commit 98afa9b

Browse files
asmodehnAlexandre Vincent
andauthored
[tests] Added runtests script consistent with other OpenWISP repos
Co-authored-by: Alexandre Vincent <alexandre.vincent@stellar.tc>
1 parent 10a1e11 commit 98afa9b

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ jobs:
9898
- name: Tests
9999
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
100100
run: |
101-
coverage run runtests.py
102-
# the next test runs focus on specific backend features, therefore
103-
# we can skip selenium tests to improve speed and test consistency
104-
SAMPLE_APP=1 coverage run runtests.py --exclude-tag=selenium_tests
105-
TIMESERIES_UDP=1 coverage run runtests.py --exclude-tag=selenium_tests
106-
coverage combine
107-
coverage xml
101+
./runtests
108102
env:
109103
SELENIUM_HEADLESS: 1
110104
GECKO_LOG: 1

docs/developer/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Run tests with (make sure you have the :ref:`selenium dependencies
105105

106106
.. code-block:: shell
107107
108-
./runtests.py # using --parallel is not supported in this module
108+
./runtests # using --parallel is not supported in this module
109109
110110
Run quality assurance tests with:
111111

runtests

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
coverage run runtests.py
5+
6+
# the next test runs focus on specific backend features, therefore
7+
# we can skip selenium tests to improve speed and test consistency
8+
SAMPLE_APP=1 coverage run runtests.py --exclude-tag=selenium_tests
9+
TIMESERIES_UDP=1 coverage run runtests.py --exclude-tag=selenium_tests
10+
11+
coverage combine
12+
coverage xml

0 commit comments

Comments
 (0)