##// END OF EJS Templates
Allow any options to be passed through test function
Thomas Kluyver -
Show More
@@ -13,17 +13,18 b''
13 13 #-----------------------------------------------------------------------------
14 14
15 15 # User-level entry point for testing
16 def test(all=False):
16 def test(**kwargs):
17 17 """Run the entire IPython test suite.
18 18
19 For fine-grained control, you should use the :file:`iptest` script supplied
20 with the IPython installation."""
19 Any of the options for run_iptestall() may be passed as keyword arguments.
20 """
21 21
22 22 # Do the import internally, so that this function doesn't increase total
23 23 # import time
24 24 from .iptestcontroller import run_iptestall, default_options
25 25 options = default_options()
26 options.all = all
26 for name, val in kwargs.items():
27 setattr(options, name, val)
27 28 run_iptestall(options)
28 29
29 30 # So nose doesn't try to run this as a test itself and we end up with an
General Comments 0
You need to be logged in to leave comments. Login now