Fakultas Ilmu Komputer UI

Commit a3401ca7 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

#140382397 #5 Add django nose testcoverage

parent 69ba36a8
......@@ -33,7 +33,8 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'webpack_loader',
'core',
'rest_framework'
'rest_framework',
'django_nose',
]
MIDDLEWARE = [
......@@ -48,6 +49,18 @@ MIDDLEWARE = [
ROOT_URLCONF = 'kape.urls'
# Use nose to run all tests
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
# Tell nose to measure coverage on the 'foo' and 'bar' apps
NOSE_ARGS = [
'--with-coverage',
'--cover-package=kape.views',
'--cover-html-dir=test.html',
'--cover-html'
''
]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
......
......@@ -6,4 +6,5 @@ packaging==16.8
psycopg2==2.6.2
pyparsing==2.1.10
six==1.10.0
gunicorn
\ No newline at end of file
gunicorn
django-nose
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment