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.xml
|
||||||
coverage-karma
|
coverage-karma
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
|
*nose_results.html
|
||||||
pep8.txt
|
pep8.txt
|
||||||
pylint.txt
|
pylint.txt
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from openstack_dashboard.utils import settings as settings_utils
|
from openstack_dashboard.utils import settings as settings_utils
|
||||||
|
|
||||||
socket.setdefaulttimeout(1)
|
socket.setdefaulttimeout(1)
|
||||||
@ -112,6 +114,11 @@ NOSE_ARGS = ['--nocapture',
|
|||||||
'--cover-package=horizon',
|
'--cover-package=horizon',
|
||||||
'--cover-inclusive',
|
'--cover-inclusive',
|
||||||
'--all-modules']
|
'--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'
|
EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend'
|
||||||
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
|
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from django.utils.translation import pgettext_lazy
|
from django.utils.translation import pgettext_lazy
|
||||||
from horizon.test.settings import * # noqa: F403,H303
|
from horizon.test.settings import * # noqa: F403,H303
|
||||||
from horizon.utils import secret_key
|
from horizon.utils import secret_key
|
||||||
@ -241,6 +243,11 @@ NOSE_ARGS = ['--nocapture',
|
|||||||
'--cover-package=openstack_dashboard',
|
'--cover-package=openstack_dashboard',
|
||||||
'--cover-inclusive',
|
'--cover-inclusive',
|
||||||
'--all-modules']
|
'--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_PATH = os.path.join(ROOT_PATH, "conf")
|
||||||
POLICY_FILES = {
|
POLICY_FILES = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user