Skip to content

Commit b4ebc83

Browse files
committed
[tests] Added centralized runtests script
1 parent fff160f commit b4ebc83

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,7 @@ jobs:
9191
9292
- name: Tests
9393
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
94-
run: |
95-
coverage run ./runtests.py --parallel || ./runtests.py
96-
SAMPLE_APP=1 coverage run ./runtests.py --parallel
97-
# basic tests without allauth.socialaccount
98-
NO_SOCIAL_APP=1 coverage run ./tests/manage.py test testapp.tests.test_admin.TestUsersAdmin --parallel
99-
coverage combine
100-
coverage xml
94+
run: ./runtests
10195
env:
10296
SELENIUM_HEADLESS: 1
10397
GECKO_LOG: 1

docs/developer/installation.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ Run tests with:
6565

6666
.. code-block:: shell
6767
68-
# --parallel and --keepdb are optional but help to speed up the operation
69-
./runtests.py --parallel --keepdb
68+
./runtests
7069
7170
Alternative Sources
7271
-------------------

runtests

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Run standard tests"
5+
coverage run ./runtests.py --parallel
6+
7+
echo "Test extensibility"
8+
SAMPLE_APP=1 coverage run ./runtests.py --parallel
9+
10+
echo "Run basic tests without allauth.socialaccount"
11+
NO_SOCIAL_APP=1 coverage run ./tests/manage.py test testapp.tests.test_admin.TestUsersAdmin --parallel
12+
13+
coverage combine
14+
coverage xml

0 commit comments

Comments
 (0)