[PATCH 2 of 6] test-help: improve test coverage

Henri Wiechers hwiechers at gmail.com
Thu Dec 24 16:57:05 UTC 2009


# HG changeset patch
# User Henri Wiechers <hwiechers at gmail.com>
# Date 1261673615 -7200
test-help: improve test coverage

Adds a test for help on a command with no options.

Extends test coverage of commands.help_ by 2 lines.

diff -r 6c4004d766bb -r b82bfb9fcbd6 tests/test-help
--- a/tests/test-help
+++ b/tests/test-help
@@ -18,6 +18,9 @@
 echo %% test ambiguous command help
 hg help ad
 
+echo %% test command without options
+hg help verify
+
 hg help diff
 hg help status
 hg -q help status
diff -r 6c4004d766bb -r b82bfb9fcbd6 tests/test-help.out
--- a/tests/test-help.out
+++ b/tests/test-help.out
@@ -301,6 +301,19 @@
  addremove   add all new files, delete all missing files
 
 use "hg -v help ad" to show aliases and global options
+%% test command without options
+hg verify
+
+verify the integrity of the repository
+
+    Verify the integrity of the current repository.
+
+    This will perform an extensive check of the repository's integrity,
+    validating the hashes and checksums of each entry in the changelog,
+    manifest, and tracked files, as well as the integrity of their crosslinks
+    and indices.
+
+use "hg -v help verify" to show global options
 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
 
 diff repository (or selected files)



More information about the Mercurial-devel mailing list