X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2FREADME;h=146e261934598694c750d0fe0357ab4a25d88d83;hb=f50c9f76ca516051e9f7e7ef68d6a4d0f5830dda;hp=fce19e7fff2d4fc692e9e30656f91607d094e37e;hpb=986aa7f17e363128856e51efb34c878e0563c509;p=git.git diff --git a/t/README b/t/README index fce19e7f..146e2619 100644 --- a/t/README +++ b/t/README @@ -55,6 +55,31 @@ You can pass --verbose (or -v), --debug (or -d), and --immediate failed test. +Naming Tests +------------ + +The test files are named as: + + tNNNN-commandname-details.sh + +where N is a decimal digit. + +First digit tells the family: + + 0 - the absolute basics and global stuff + 1 - the basic commands concerning database + 2 - the basic commands concerning the working tree + 3 - the other basic commands (e.g. ls-files) + 4 - the diff commands + 5 - the pull and exporting commands + 6 - the revision tree commands (even e.g. merge-base) + +Second digit tells the particular command we are testing. + +Third digit (optionally) tells the particular switch or group of switches +we are testing. + + Writing Tests ------------- @@ -72,6 +97,7 @@ assignment to variable 'test_description', like this: This test registers the following structure in the cache and tries to run git-ls-files with option --frotz.' + Source 'test-lib.sh' -------------------- @@ -94,7 +120,6 @@ This test harness library does the following things: consistently when command line arguments --verbose (or -v), --debug (or -d), and --immediate (or -i) is given. - End with test_done ------------------