Merge "Generate unit test HTML reports"
This commit is contained in:
commit
e3720c6d8b
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,6 +15,7 @@
|
||||
coverage.xml
|
||||
coverage-karma
|
||||
nosetests.xml
|
||||
*nose_results.html
|
||||
pep8.txt
|
||||
pylint.txt
|
||||
# Files created by releasenotes build
|
||||
|
@ -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'
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user