11
11
The best way to run the tests in this directory is to do::
15
Try ``runtests.py --help`` to see all help options.
15
17
You may also run each test individually. For example::
17
19
$ python test_contour.py
19
===================================
20
DEBUGGING USING ON SCREEN RENDERING
21
===================================
23
These unit tests run off screen and make use of TestEngine.
21
You can also use nosetests but nosetests runs everything in the same
22
process often tripping up on valid tests.
25
Debugging using on-screen rendering
26
===================================
28
Many of these unit tests run off screen and make use of TestEngine.
25
30
TestEngine can be replaced by Engine to allow for scene creation
26
which may be useful in debuggine.
28
This can be easily done by uncommenting the following line from the setUp() functions
30
e = Engine() // THis is commented by default
31
which may be useful in debugging.
33
This can be easily done by uncommenting the following line from the
36
e = Engine() # This is commented by default
32
38
It must be followed by the commenting of :
34
e = TestEngine() // This is uncommented by default
40
e = TestEngine() # This is uncommented by default
36
===================================
37
DEBUGGING USING IPython Shell
42
Debugging using an IPython Shell
38
43
===================================
40
45
The IPython Shell can be embedded anywhere in the program.
42
You need to import IPython module and then add the following lines wherver you want to embed the shell:
47
You need to import the `IPython` module and then add the following
48
lines wherver you want to embed the shell::
44
50
embedshell = IPython.Shell.IPShellEmbed()