# Test scripts naming

2 messages from 2005-05-14 to 2005-05-14. Participants: Petr Baudis, Junio C Hamano.
Thread: https://gitlist.dev/t/622

## Petr Baudis, 2005-05-14 16:53

Subject: Test scripts naming
Message-ID: <20050514165321.GX3905@pasky.ji.cz>
URL: https://gitlist.dev/e/20050514165321.GX3905%40pasky.ji.cz

```
  Hello,

  I think we should do something about the test script names. Currently
it appears almost like the scripts are basically unordered, and the
digit you increment is chosen mostly randomly. Also, the "freeform"
field after the test number is not as informative as it could be. What
are the rules you use for naming the testcases? Could you please
document it in the README?

  I'd propose:

  First digit: "family", e.g. the absolute basics and global stuff (0),
the basic db-side commands (read-tree, write-tree, commit-tree), the
basic working-tree-side commands (checkout-cache, update-cache), the
other basic commands (ls-files), the diff commands, the pull commands,
exporting commands, revision tree commands...

  Second digit: the particular command we are testing

  Third digit: (optionally) the particular switch or group of switches
we are testing

  Freeform part: commandname-details

  How would I rename the current scripts?

t1000-checkout-cache.sh -> t2000-checkout-cache-clash.sh
t1001-checkout-cache.sh -> t2001-checkout-cache-clash.sh
t0200-update-cache.sh   -> t2010-update-cache-badpath.sh
t0400-ls-files.sh       -> t3000-ls-files-others.sh
t0500-ls-files.sh       -> t3010-ls-files-killed.sh

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

```

## Junio C Hamano, 2005-05-14 17:18

Subject: Re: Test scripts naming
Message-ID: <7v3bspzpyt.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v3bspzpyt.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20050514165321.GX3905@pasky.ji.cz>

```
>>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes:

PB>   I'd propose:
PB> ...
PB> t0500-ls-files.sh       -> t3010-ls-files-killed.sh

Agreed to all of the above.  I will not be online most of today
so if you feel like it, I'd really appreciate it if you do the
renames and documentation yourself without waiting for me.



```
