test-help: improve test coverage
authorHenri Wiechers <hwiechers@gmail.com>
Thu, 24 Dec 2009 18:53:35 +0200
changeset 10143 f6ac05b5684b
parent 10142 44fa0e205ec9
child 10144 69a974125938
test-help: improve test coverage Adds a test for displaying a command list with a command with no help text. Extends test coverage of commands.help_ by 1 line.
tests/test-help
tests/test-help.out
--- a/tests/test-help	Thu Dec 24 18:53:35 2009 +0200
+++ b/tests/test-help	Thu Dec 24 18:53:35 2009 +0200
@@ -51,4 +51,7 @@
 echo %% test that default list of commands omits extension commands
 hg help
 
+echo %% test list of commands with command with no help text
+hg help helpext
+
 exit 0
--- a/tests/test-help.out	Thu Dec 24 18:53:35 2009 +0200
+++ b/tests/test-help.out	Thu Dec 24 18:53:35 2009 +0200
@@ -542,3 +542,11 @@
  extensions   Using additional features
 
 use "hg -v help" to show aliases and global options
+%% test list of commands with command with no help text
+helpext extension - no help text available
+
+list of commands:
+
+ nohelp   (no help text available)
+
+use "hg -v help helpext" to show aliases and global options