Cleanup for easier builds using hudson.
[redakcja.git] / redakcja / settings / test.py
diff --git a/redakcja/settings/test.py b/redakcja/settings/test.py
new file mode 100644 (file)
index 0000000..118c7ff
--- /dev/null
@@ -0,0 +1,28 @@
+#
+# Nose tests
+#
+
+from redakcja.settings.common import *
+
+# ROOT_URLCONF = 'yourapp.settings.test.urls'
+
+DATABASE_ENGINE = 'sqlite3'
+DATABASE_NAME = ':memory:'
+
+import tempfile
+
+WIKI_REPOSITORY_PATH = tempfile.mkdtemp(prefix='wikirepo')
+
+INSTALLED_APPS += ('django_nose',)
+
+TEST_RUNNER = 'django_nose.run_tests'
+TEST_MODULES = ('wiki', 'toolbar', 'vstorage')
+NOSE_ARGS = (
+    '--tests=' + ','.join(TEST_MODULES),
+    '--cover-package=' + ','.join(TEST_MODULES),
+    '-d',
+    '--with-coverage',
+    '--with-doctest',
+    '--with-xunit',
+    '--with-xcoverage',
+)