# Test names

2 messages from 2006-09-05 to 2006-09-05. Participants: Jakub Narebski, Junio C Hamano.
Thread: https://gitlist.dev/t/5478

## Jakub Narebski, 2006-09-05 00:10

Subject: Test names
Message-ID: <edifa7$h29$1@sea.gmane.org>
URL: https://gitlist.dev/e/edifa7%24h29%241%40sea.gmane.org

```
In t/README it is written:

> 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
> [...]
>         7 - the porcelainish commands concerning the working tree

There are now some test which have 8 or 9 as first digit (e.g.
t8002-blame.sh, t9001-send-email.sh). What is the family for them?
What number for example gitweb test should have?

> Second digit tells the particular command we are testing.

Is there any naming rule, or just increment it by one when adding new test
in the same family?

> Third digit (optionally) tells the particular switch or group of switches
>  we are testing.

What tells the fourth digit?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

```

## Junio C Hamano, 2006-09-05 08:28

Subject: Re: Test names
Message-ID: <7vd5aaiuoy.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vd5aaiuoy.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <edifa7$h29$1@sea.gmane.org>

```
Jakub Narebski <jnareb@gmail.com> writes:

> In t/README it is written:
>...
> Is there any naming rule, or just increment it by one when adding new test
> in the same family?
>
>> Third digit (optionally) tells the particular switch or group of switches
>>  we are testing.
>
> What tells the fourth digit?

Nothing other than just to make them aline up and ordered
nicely.

The rule was outlined long time ago but not strictly followed
(primarily because was done when git was mostly core, and it did
not anticipate the proliferation of Porcelain-ish wrappers, so
it was rather hard to follow).  I'd suggest you to declare that
t92xx- series are for gitweb, and organize the tests in that
namespace nicely.  Also you might want to see what Eric did for
the subversion interface tests (60d02cc declares that t91xx-
series are SVN tests and gives an easy way to skip heavier tests
on git-svn).

```
