##// END OF EJS Templates
Allow drilling down to individual tests using iptest command
Thomas Kluyver -
Show More
@@ -368,8 +368,13 b' def run_iptest():'
368 warnings.filterwarnings('ignore',
368 warnings.filterwarnings('ignore',
369 'This will be removed soon. Use IPython.testing.util instead')
369 'This will be removed soon. Use IPython.testing.util instead')
370
370
371 section = test_sections[sys.argv[1]]
371 if sys.argv[1] in test_sections:
372 sys.argv[1:2] = section.includes
372 section = test_sections[sys.argv[1]]
373 sys.argv[1:2] = section.includes
374 else:
375 arg1 = sys.argv[1]
376 section = TestSection(arg1, includes=[arg1])
377
373
378
374 argv = sys.argv + [ '--detailed-errors', # extra info in tracebacks
379 argv = sys.argv + [ '--detailed-errors', # extra info in tracebacks
375
380
@@ -413,7 +418,7 b' def run_iptest():'
413 # assumptions about what needs to be a singleton and what doesn't (app
418 # assumptions about what needs to be a singleton and what doesn't (app
414 # objects should, individual shells shouldn't). But for now, this
419 # objects should, individual shells shouldn't). But for now, this
415 # workaround allows the test suite for the inprocess module to complete.
420 # workaround allows the test suite for the inprocess module to complete.
416 if section.name != 'kernel.inprocess':
421 if 'kernel.inprocess' not in section.name:
417 from IPython.testing import globalipapp
422 from IPython.testing import globalipapp
418 globalipapp.start_ipython()
423 globalipapp.start_ipython()
419
424
@@ -349,7 +349,8 b' def run_iptestall(inc_slow=False, jobs=1, xunit_out=False, coverage_out=False):'
349
349
350
350
351 def main():
351 def main():
352 if len(sys.argv) > 1 and (sys.argv[1] in test_sections):
352 if len(sys.argv) > 1 and \
353 ((sys.argv[1] in test_sections) or sys.argv[1].startswith('IPython')):
353 from .iptest import run_iptest
354 from .iptest import run_iptest
354 # This is in-process
355 # This is in-process
355 run_iptest()
356 run_iptest()
General Comments 0
You need to be logged in to leave comments. Login now