Improve docs testing (#3308)

* add information about running only some testcases
pull/3309/head
Daniel Chimeno 2017-01-28 02:02:44 +01:00 zatwierdzone przez Matt Westcott
rodzic ee837dedc5
commit b61f688347
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -57,7 +57,7 @@ From the root of the Wagtail codebase, run the following command to run all the
**Running only some of the tests** **Running only some of the tests**
At the time of writing, Wagtail has well over 1000 tests, which takes a while to At the time of writing, Wagtail has well over 2500 tests, which takes a while to
run. You can run tests for only one part of Wagtail by passing in the path as run. You can run tests for only one part of Wagtail by passing in the path as
an argument to ``runtests.py``: an argument to ``runtests.py``:
@ -65,6 +65,14 @@ an argument to ``runtests.py``:
$ python runtests.py wagtail.wagtailcore $ python runtests.py wagtail.wagtailcore
You can also run tests for individual TestCases by passing in the path as
an argument to ``runtests.py``
.. code-block:: console
$ python runtests.py wagtail.wagtailcore.tests.test_blocks.TestIntegerBlock
**Testing against PostgreSQL** **Testing against PostgreSQL**
By default, Wagtail tests against SQLite. You can switch to using PostgreSQL by By default, Wagtail tests against SQLite. You can switch to using PostgreSQL by