Show More
@@ -13,17 +13,18 b'' | |||||
13 | #----------------------------------------------------------------------------- |
|
13 | #----------------------------------------------------------------------------- | |
14 |
|
14 | |||
15 | # User-level entry point for testing |
|
15 | # User-level entry point for testing | |
16 |
def test( |
|
16 | def test(**kwargs): | |
17 | """Run the entire IPython test suite. |
|
17 | """Run the entire IPython test suite. | |
18 |
|
18 | |||
19 | For fine-grained control, you should use the :file:`iptest` script supplied |
|
19 | Any of the options for run_iptestall() may be passed as keyword arguments. | |
20 | with the IPython installation.""" |
|
20 | """ | |
21 |
|
21 | |||
22 | # Do the import internally, so that this function doesn't increase total |
|
22 | # Do the import internally, so that this function doesn't increase total | |
23 | # import time |
|
23 | # import time | |
24 | from .iptestcontroller import run_iptestall, default_options |
|
24 | from .iptestcontroller import run_iptestall, default_options | |
25 | options = default_options() |
|
25 | options = default_options() | |
26 | options.all = all |
|
26 | for name, val in kwargs.items(): | |
|
27 | setattr(options, name, val) | |||
27 | run_iptestall(options) |
|
28 | run_iptestall(options) | |
28 |
|
29 | |||
29 | # So nose doesn't try to run this as a test itself and we end up with an |
|
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