Show More
@@ -47,17 +47,24 b' Running tests' | |||
|
47 | 47 | ------------- |
|
48 | 48 | |
|
49 | 49 | After finishing your changes make sure all tests pass cleanly. You can run |
|
50 | the testsuite running ``nosetest`` from the project root, or if you use tox | |
|
51 |
run tox for python2.6-2.7 with multiple database test. |
|
|
52 | test.ini file is used and by default it uses SQLite for tests, edit this file | |
|
53 | to change your testing enviroment. | |
|
50 | the testsuite running ``nosetests`` from the project root, or if you use tox | |
|
51 | run ``tox`` for python2.6-2.7 with multiple database test. | |
|
54 | 52 | |
|
55 | There's a special set of tests for push/pull operations, you can run them using:: | |
|
53 | When using `nosetests`, the `test.ini` file is used with an SQLite database. Edit | |
|
54 | this file to change your testing enviroment. | |
|
55 | ||
|
56 | It is possible to avoid recreating the full test database on each invocation of | |
|
57 | the tests, thus eliminating the initial delay. To achieve this, run the tests as:: | |
|
56 | 58 | |
|
57 | 59 | paster serve test.ini --pid-file=test.pid --daemon |
|
58 |
KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests |
|
|
60 | KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests | |
|
59 | 61 | kill -9 $(cat test.pid) |
|
60 | 62 | |
|
63 | You can run individual tests by specifying their path as argument to nosetests. | |
|
64 | nosetests also has many more options, see `nosetests -h`. | |
|
65 | ||
|
66 | There's a special set of tests for push/pull operations in | |
|
67 | `kallithea/tests/other/test_vcs_operations.py`. | |
|
61 | 68 | |
|
62 | 69 | Coding/contribution guidelines |
|
63 | 70 | ------------------------------ |
General Comments 0
You need to be logged in to leave comments.
Login now