~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/testing.txt

  • Committer: Martin Pool
  • Date: 2005-05-10 08:15:58 UTC
  • Revision ID: mbp@sourcefrog.net-20050510081558-9a38e2c46ba4ebc4
- Patch from Fredrik Lundh to check Python version and 
  try to find a better one if it's too old.

  Patched to try to prevent infinite loops in wierd configurations,
  and to log to stderr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
***********************
2
 
Test plan for Patchflow
3
 
***********************
4
 
 
5
 
This should be amenable to good automated testing.  Here are some
6
 
ideas.
7
 
 
8
 
* Corrupt the branch in various ways and make sure it is detected.
9
 
 
10
 
  - To start with test all cases checked by check()
11
 
 
12
 
* Commit.
13
 
 
14
 
 
15
 
I'm using doctest_ for some API tests, and it looks pretty nice.  It
16
 
adds some documentation of the pre/post-conditions of various
17
 
operations.  It also encourages creating a clean and friendly Python
18
 
API.
19
 
 
20
 
Testing through the Python API does not cover all of the external
21
 
shell interface, but it is much easier to write, because we don't need
22
 
to deal with serializing everything to/from text.
23
 
 
24
 
We may need additional tests to this.
25
 
 
26
 
 
27
 
.. _doctest: http://docs.python.org/lib/module-doctest.html
 
 
b'\\ No newline at end of file'