Revision 06c9a9d6 doc/devnotes.rst

b/doc/devnotes.rst
141 141
or in emacs via ``completion-ignored-extensions`` (run ``M-x
142 142
customize-var completion-ignored-extensions``).
143 143

  
144
Running individual tests
145
~~~~~~~~~~~~~~~~~~~~~~~~
146

  
147
When developing code, running the entire test suite can be
148
slow. Running individual tests is possible easily for unit-tests, less
149
so for shell-tests (but these are faster, so it shouldn't be needed).
150

  
151
For Python tests::
152

  
153
  $ export PYTHONPATH=$PWD
154
  $ python ./test/ganeti.%mytest%
155

  
156
For Haskell tests::
157

  
158
  $ make htest/test && ./htest/test -t %pattern%
159

  
160
Where ``pattern`` can be a simple test pattern (e.g. ``comma``,
161
matching any test whose name contains ``comma``), a test pattern
162
denoting a group (ending with a slash, e.g. ``Utils/``), or more
163
complex glob pattern. For more details, see the documentation (on the
164
`test-framework homepage
165
<http://batterseapower.github.com/test-framework/>`_).
166

  
144 167
Packaging notes
145 168
===============
146 169

  

Also available in: Unified diff