~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/testing.txt

Merge test_repository fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
 
340
340
  __ http://docs.python.org/lib/module-doctest.html
341
341
 
342
 
There is an `assertDoctestExampleMatches` method in
343
 
`bzrlib.tests.TestCase` that allows you to match against doctest-style
344
 
string templates (including ``...`` to skip sections) from regular Python
345
 
tests.
346
 
 
347
342
 
348
343
Shell-like tests
349
344
----------------
516
511
regress.
517
512
 
518
513
This is done by running the command in a subprocess with
519
 
``PYTHON_VERBOSE=1``.  Starting a whole Python interpreter is pretty slow,
520
 
so we don't want exhaustive testing here, but just enough to guard against
521
 
distinct fixed problems.
 
514
``--profile-imports``.  Starting a whole Python interpreter is pretty
 
515
slow, so we don't want exhaustive testing here, but just enough to guard
 
516
against distinct fixed problems.
522
517
 
523
518
Assertions about precisely what is loaded tend to be brittle so we instead
524
519
make assertions that particular things aren't loaded.