Commit c0a7739e authored by Tomas Vaagen Gule's avatar Tomas Vaagen Gule
Browse files

#10 Add testing tools

parent adcea233
......@@ -63,6 +63,7 @@ INSTALLED_APPS = [
"users.apps.UsersConfig",
"comments.apps.CommentsConfig",
"corsheaders",
# "django-nose",
]
MIDDLEWARE = [
......@@ -121,6 +122,16 @@ CORS_ORIGIN_ALLOW_ALL = (
True
)
# 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=users.serializers,workouts.permissions',
'--cover-html',
]
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
......@@ -135,6 +146,7 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
......
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