Merge "Generate unit test HTML reports"

This commit is contained in:
Jenkins 2017-06-13 11:09:52 +00:00 committed by Gerrit Code Review
commit e3720c6d8b
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@
coverage.xml
coverage-karma
nosetests.xml
*nose_results.html
pep8.txt
pylint.txt
# Files created by releasenotes build

View File

@ -19,6 +19,8 @@
import os
import socket
import six
from openstack_dashboard.utils import settings as settings_utils
socket.setdefaulttimeout(1)
@ -112,6 +114,11 @@ NOSE_ARGS = ['--nocapture',
'--cover-package=horizon',
'--cover-inclusive',
'--all-modules']
# TODO(amotoki): Need to investigate why --with-html-output
# is unavailable in python3.
if six.PY2:
NOSE_ARGS += ['--with-html-output',
'--html-out-file=ut_horizon_nose_results.html']
EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend'
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'

View File

@ -13,6 +13,8 @@
import os
import tempfile
import six
from django.utils.translation import pgettext_lazy
from horizon.test.settings import * # noqa: F403,H303
from horizon.utils import secret_key
@ -241,6 +243,11 @@ NOSE_ARGS = ['--nocapture',
'--cover-package=openstack_dashboard',
'--cover-inclusive',
'--all-modules']
# TODO(amotoki): Need to investigate why --with-html-output
# is unavailable in python3.
if six.PY2:
NOSE_ARGS += ['--with-html-output',
'--html-out-file=ut_openstack_dashboard_nose_results.html']
POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf")
POLICY_FILES = {