Skip to content

Commit 29c0634

Browse files
committed
[tests] Moved test logic to dedicated script
1 parent aa3189f commit 29c0634

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,7 @@ jobs:
8888

8989
- name: Tests
9090
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
91-
run: |
92-
coverage run runtests.py --parallel || coverage run ./runtests.py
93-
# tests the extension capability
94-
SAMPLE_APP=1 coverage run ./runtests.py --parallel --keepdb --exclude-tag=selenium_tests \
95-
|| SAMPLE_APP=1 coverage run ./runtests.py --keepdb --exclude-tag=selenium_tests
96-
coverage combine
97-
coverage xml
91+
run: ./runtests
9892
env:
9993
SELENIUM_HEADLESS: 1
10094
GECKO_LOG: 1

docs/developer/installation.rst

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

9898
.. code-block:: shell
9999
100-
./runtests.py --parallel
100+
./runtests
101101
102102
Some tests, such as the Selenium UI tests, require a PostgreSQL database
103103
to run. If you don't have a PostgreSQL database running on your system,

runtests

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# standard tests
5+
coverage run runtests.py --parallel \
6+
|| coverage run ./runtests.py
7+
# tests the extension capability
8+
SAMPLE_APP=1 coverage run ./runtests.py \
9+
--parallel --exclude-tag=selenium_tests \
10+
|| SAMPLE_APP=1 coverage run ./runtests.py \
11+
--exclude-tag=selenium_tests
12+
coverage combine
13+
coverage xml

0 commit comments

Comments
 (0)