Rev 2522: Exception testing review comments in http://sourcefrog.net/bzr/doc
Martin Pool
mbp at sourcefrog.net
Thu Jul 12 10:49:51 BST 2007
At http://sourcefrog.net/bzr/doc
------------------------------------------------------------
revno: 2522
revision-id: mbp at sourcefrog.net-20070712094950-tvvsyf0rf2d2m86d
parent: mbp at sourcefrog.net-20070712091115-uhg5zz3blan43m85
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: doc
timestamp: Thu 2007-07-12 19:49:50 +1000
message:
Exception testing review comments
modified:
doc/developers/HACKING HACKING-20050805200004-2a5dc975d870f78c
=== modified file 'doc/developers/HACKING'
--- a/doc/developers/HACKING 2007-07-12 09:11:15 +0000
+++ b/doc/developers/HACKING 2007-07-12 09:49:50 +0000
@@ -372,8 +372,8 @@
fix for it, or if something works on Unix but not on Windows.
-Testing Bazaar
---------------
+Testing exceptions and errors
+-----------------------------
It's important to test handling of errors and exceptions. Because this
code is often not hit in ad-hoc testing it can often have hidden bugs --
@@ -398,7 +398,10 @@
In some cases blackbox tests will also want to check error reporting. But
it can be difficult to provoke every error through the commandline
interface, so those tests are only done as needed -- eg in response to a
-particular bug or if the error is reported in an unusual way(?)
+particular bug or if the error is reported in an unusual way(?) Blackbox
+tests should mostly be testing how the command-line interface works, so
+should only test errors if there is something particular to the cli in how
+they're displayed or handled.
Essential Domain Classes
More information about the bazaar-commits
mailing list