Commits

Andy Mikhailenko committed 25803dd

Added coverage reports to the test runner.

Comments (0)

Files changed (2)

requirements/devel.txt

+coverage==3.5.1
+django-coverage==1.2.1
 pysqlite==2.6.3
-#!/usr/bin/python
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
-
+import os
 from django.conf import settings
 from django.core.management import call_command
 
 
 settings.configure(
-    INSTALLED_APPS=('autoslug',),
+    INSTALLED_APPS=('autoslug', 'django_coverage'),
     DATABASE_ENGINE='sqlite3',
     AUTOSLUG_SLUGIFY_FUNCTION='django.template.defaultfilters.slugify',
+    COVERAGE_REPORT_HTML_OUTPUT_DIR = os.path.join('.', 'coverage')
 )
 
 if __name__ == "__main__":
-    call_command('test', 'autoslug')
+    call_command('test_coverage', 'autoslug')