Show More
@@ -1,38 +1,38 b'' | |||
|
1 | 1 | """Testing support (tools to test IPython itself). |
|
2 | 2 | """ |
|
3 | 3 | |
|
4 | 4 | #----------------------------------------------------------------------------- |
|
5 | 5 | # Copyright (C) 2009-2011 The IPython Development Team |
|
6 | 6 | # |
|
7 | 7 | # Distributed under the terms of the BSD License. The full license is in |
|
8 | 8 | # the file COPYING, distributed as part of this software. |
|
9 | 9 | #----------------------------------------------------------------------------- |
|
10 | 10 | |
|
11 | 11 | #----------------------------------------------------------------------------- |
|
12 | 12 | # Functions |
|
13 | 13 | #----------------------------------------------------------------------------- |
|
14 | 14 | |
|
15 | 15 | # User-level entry point for testing |
|
16 | 16 | def test(**kwargs): |
|
17 | 17 | """Run the entire IPython test suite. |
|
18 | 18 | |
|
19 | 19 | Any of the options for run_iptestall() may be passed as keyword arguments. |
|
20 | 20 | |
|
21 | For example: | |
|
21 | For example:: | |
|
22 | 22 | |
|
23 | 23 | IPython.test(testgroups=['lib', 'config', 'utils'], fast=2) |
|
24 | 24 | |
|
25 | 25 | will run those three sections of the test suite, using two processes. |
|
26 | 26 | """ |
|
27 | 27 | |
|
28 | 28 | # Do the import internally, so that this function doesn't increase total |
|
29 | 29 | # import time |
|
30 | 30 | from .iptestcontroller import run_iptestall, default_options |
|
31 | 31 | options = default_options() |
|
32 | 32 | for name, val in kwargs.items(): |
|
33 | 33 | setattr(options, name, val) |
|
34 | 34 | run_iptestall(options) |
|
35 | 35 | |
|
36 | 36 | # So nose doesn't try to run this as a test itself and we end up with an |
|
37 | 37 | # infinite test loop |
|
38 | 38 | test.__test__ = False |
General Comments 0
You need to be logged in to leave comments.
Login now