changeset 10143:f6ac05b5684b

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.
author Henri Wiechers <hwiechers@gmail.com>
date Thu, 24 Dec 2009 18:53:35 +0200
parents 44fa0e205ec9
children 69a974125938
files tests/test-help tests/test-help.out
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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