~ubuntu-branches/debian/sid/mayavi2/sid

« back to all changes in this revision

Viewing changes to enthought/mayavi/tests/README.txt

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2009-03-27 04:34:55 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090327043455-vs6ox32daj6ndw33
Tags: 3.2.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
The best way to run the tests in this directory is to do::
12
12
 
13
 
 $ nosetests
 
13
 $ ./runtests.py .
 
14
 
 
15
Try ``runtests.py --help`` to see all help options.
14
16
 
15
17
You may also run each test individually.  For example::
16
18
 
17
19
 $ python test_contour.py
18
20
 
19
 
===================================
20
 
DEBUGGING USING ON SCREEN RENDERING
21
 
===================================
22
 
 
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.
 
23
 
 
24
 
 
25
Debugging using on-screen rendering
 
26
===================================
 
27
 
 
28
Many of these unit tests run off screen and make use of TestEngine.
24
29
 
25
30
TestEngine can be replaced by Engine to allow for scene creation
26
 
which may be useful in debuggine.
27
 
 
28
 
This can be easily done by uncommenting the following line from the setUp() functions
29
 
 
30
 
        e = Engine() // THis is commented by default
 
31
which may be useful in debugging.
 
32
 
 
33
This can be easily done by uncommenting the following line from the
 
34
setUp() functions::
 
35
 
 
36
        e = Engine() # This is commented by default
31
37
 
32
38
It must be followed by the commenting of :
33
39
        
34
 
        e = TestEngine() // This is uncommented by default
 
40
        e = TestEngine() # This is uncommented by default
35
41
 
36
 
===================================
37
 
DEBUGGING USING IPython Shell
 
42
Debugging using an IPython Shell
38
43
===================================
39
44
 
40
45
The IPython Shell can be embedded anywhere in the program.
41
46
 
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::
43
49
 
44
50
        embedshell = IPython.Shell.IPShellEmbed()
45
51
        embedshell()
46
 
        
47
 
 
48
52
 
49
53