added javascript section with casperjs requirement

Paul Ivanov 13 years ago
parent 8338f9ae90
commit 66972d69bf

@ -45,6 +45,7 @@ from nose.plugins import Plugin
from nose.util import safe_str
# Our own imports
from IPython.utils.process import is_cmd_found
from IPython.utils.importstring import import_item
from IPython.testing.plugin.ipdoctest import IPythonDoctest
from IPython.external.decorators import KnownFailure, knownfailureif
@ -151,6 +152,7 @@ have['wx.aui'] = test_for('wx.aui')
have['azure'] = test_for('azure')
have['requests'] = test_for('requests')
have['sphinx'] = test_for('sphinx')
have['casperjs'] = is_cmd_found('casperjs')
min_zmq = (2,1,11)
@ -162,7 +164,7 @@ have['zmq'] = test_for('zmq.pyzmq_version_info', min_zmq, callback=lambda x: x()
test_group_names = ['parallel', 'kernel', 'kernel.inprocess', 'config', 'core',
'extensions', 'lib', 'terminal', 'testing', 'utils',
'nbformat', 'qt', 'html', 'nbconvert'
'nbformat', 'qt', 'html', 'js', 'nbconvert'
]
class TestSection(object):
@ -286,6 +288,9 @@ if not have['jinja2']:
if not have['azure']:
sec.exclude('services.notebooks.azurenbmanager')
sec = test_sections['js']
sec.requires('zmq', 'tornado', 'jinja2', 'casperjs')
# config:
# Config files aren't really importable stand-alone
test_sections['config'].exclude('profile')

Loading…
Cancel
Save