Run the entire IPython test suite. Any of the options for run_iptestall() may be passed as keyword arguments. For example:: IPython.test(testgroups=['lib', 'config', 'utils'], fast=2) will run those three sections of the test suite, using two processes.
(**kwargs)
| 17 | |
| 18 | # User-level entry point for testing |
| 19 | def test(**kwargs): |
| 20 | """Run the entire IPython test suite. |
| 21 | |
| 22 | Any of the options for run_iptestall() may be passed as keyword arguments. |
| 23 | |
| 24 | For example:: |
| 25 | |
| 26 | IPython.test(testgroups=['lib', 'config', 'utils'], fast=2) |
| 27 | |
| 28 | will run those three sections of the test suite, using two processes. |
| 29 | """ |
| 30 | |
| 31 | # Do the import internally, so that this function doesn't increase total |
| 32 | # import time |
| 33 | from .iptestcontroller import run_iptestall, default_options |
| 34 | options = default_options() |
| 35 | for name, val in kwargs.items(): |
| 36 | setattr(options, name, val) |
| 37 | run_iptestall(options) |
| 38 | |
| 39 | #----------------------------------------------------------------------------- |
| 40 | # Constants |
nothing calls this directly
no test coverage detected