Rev 5457: More docs. in file:///home/vila/src/bzr/experimental/test-script/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Oct 8 13:47:21 BST 2010
At file:///home/vila/src/bzr/experimental/test-script/
------------------------------------------------------------
revno: 5457
revision-id: v.ladeuil+lp at free.fr-20101008124721-xf6nf40j0h5zu242
parent: v.ladeuil+lp at free.fr-20101001134542-0omhto426pxkpl1e
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: test-script
timestamp: Fri 2010-10-08 14:47:21 +0200
message:
More docs.
-------------- next part --------------
=== modified file 'doc/developers/testing.txt'
--- a/doc/developers/testing.txt 2010-09-23 09:54:51 +0000
+++ b/doc/developers/testing.txt 2010-10-08 12:47:21 +0000
@@ -340,9 +340,9 @@
Shell-like tests
----------------
-``bzrlib/tests/script.py`` allows users to write tests in a syntax very close to a shell session,
-using a restricted and limited set of commands that should be enough to mimic
-most of the behaviours.
+``bzrlib/tests/script.py`` allows users to write tests in a syntax very
+close to a shell session, using a restricted and limited set of commands
+that should be enough to mimic most of the behaviours.
A script is a set of commands, each command is composed of:
@@ -427,6 +427,12 @@
$ cat file
+You can run files containing shell-like scripts with::
+
+ $ bzr test-script <script>
+
+where ``<script>`` is the path to the file containing the shell-like script.
+
The actual use of ScriptRunner within a TestCase looks something like
this::
=== modified file 'doc/en/whats-new/whats-new-in-2.3.txt'
--- a/doc/en/whats-new/whats-new-in-2.3.txt 2010-09-24 02:19:28 +0000
+++ b/doc/en/whats-new/whats-new-in-2.3.txt 2010-10-08 12:47:21 +0000
@@ -84,6 +84,14 @@
``bzr log -vp -r mainline:annotate:bzrlib/transform.py:500``
(Aaron Bentley)
+Testing/Bug reporting
+*********************
+
+* Shell-like scripts can now be run directly from the command line without
+ writing a python test. This should help users adding reproducing recipes
+ to bug reports. (Vincent Ladeuil)
+
+
Documentation
*************
More information about the bazaar-commits
mailing list