Show More
@@ -16,6 +16,7 b' syntax: regexp' | |||||
16 | ^docs/build/ |
|
16 | ^docs/build/ | |
17 | ^docs/_build/ |
|
17 | ^docs/_build/ | |
18 | ^data$ |
|
18 | ^data$ | |
|
19 | ^kallithea/tests/data$ | |||
19 | ^sql_dumps/ |
|
20 | ^sql_dumps/ | |
20 | ^\.settings$ |
|
21 | ^\.settings$ | |
21 | ^\.project$ |
|
22 | ^\.project$ |
@@ -17,5 +17,5 b' recursive-include kallithea/public *' | |||||
17 | recursive-include kallithea/templates * |
|
17 | recursive-include kallithea/templates * | |
18 | recursive-include kallithea/tests/fixtures * |
|
18 | recursive-include kallithea/tests/fixtures * | |
19 | recursive-include kallithea/tests/scripts * |
|
19 | recursive-include kallithea/tests/scripts * | |
|
20 | include kallithea/tests/test.ini | |||
20 | include kallithea/tests/vcs/aconfig |
|
21 | include kallithea/tests/vcs/aconfig | |
21 | include test.ini |
|
@@ -50,13 +50,13 b' After finishing your changes make sure a' | |||||
50 | the testsuite running ``nosetests`` from the project root, or if you use tox |
|
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. |
|
51 | run ``tox`` for python2.6-2.7 with multiple database test. | |
52 |
|
52 | |||
53 | When using `nosetests`, the `test.ini` file is used with an SQLite database. Edit |
|
53 | When running tests, Kallithea uses `kallithea/tests/test.ini` and populates the | |
54 | this file to change your testing enviroment. |
|
54 | SQLite database specified there. | |
55 |
|
55 | |||
56 | It is possible to avoid recreating the full test database on each invocation of |
|
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:: |
|
57 | the tests, thus eliminating the initial delay. To achieve this, run the tests as:: | |
58 |
|
58 | |||
59 | paster serve test.ini --pid-file=test.pid --daemon |
|
59 | paster serve kallithea/tests/test.ini --pid-file=test.pid --daemon | |
60 | KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests |
|
60 | KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests | |
61 | kill -9 $(cat test.pid) |
|
61 | kill -9 $(cat test.pid) | |
62 |
|
62 |
@@ -83,7 +83,7 b' new translation instructions' | |||||
83 | Testing translations |
|
83 | Testing translations | |
84 | -------------------- |
|
84 | -------------------- | |
85 |
|
85 | |||
86 | Edit test.ini file and set lang attribute to:: |
|
86 | Edit kallithea/tests/test.ini file and set lang attribute to:: | |
87 |
|
87 | |||
88 | lang=<new_language_code> |
|
88 | lang=<new_language_code> | |
89 |
|
89 |
@@ -15,7 +15,7 b' def pytest_configure():' | |||||
15 |
|
15 | |||
16 | # Disable INFO logging of test database creation, restore with NOTSET |
|
16 | # Disable INFO logging of test database creation, restore with NOTSET | |
17 | logging.disable(logging.INFO) |
|
17 | logging.disable(logging.INFO) | |
18 | pylons.test.pylonsapp = loadapp('config:test.ini', relative_to=path) |
|
18 | pylons.test.pylonsapp = loadapp('config:kallithea/tests/test.ini', relative_to=path) | |
19 | logging.disable(logging.NOTSET) |
|
19 | logging.disable(logging.NOTSET) | |
20 |
|
20 | |||
21 | # Setup the config and app_globals, only works if we can get |
|
21 | # Setup the config and app_globals, only works if we can get |
@@ -18,7 +18,7 b' kallithea.tests.other.manual_test_vcs_op' | |||||
18 | Test suite for making push/pull operations. |
|
18 | Test suite for making push/pull operations. | |
19 |
|
19 | |||
20 | Run it in two terminals:: |
|
20 | Run it in two terminals:: | |
21 | paster serve test.ini |
|
21 | paster serve kallithea/tests/test.ini | |
22 | KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests kallithea/tests/other/manual_test_vcs_operations.py |
|
22 | KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests kallithea/tests/other/manual_test_vcs_operations.py | |
23 |
|
23 | |||
24 | You must have git > 1.8.1 for tests to work fine |
|
24 | You must have git > 1.8.1 for tests to work fine |
1 | NO CONTENT: file renamed from test.ini to kallithea/tests/test.ini |
|
NO CONTENT: file renamed from test.ini to kallithea/tests/test.ini |
General Comments 0
You need to be logged in to leave comments.
Login now