Tcl Source Code

View Ticket
Login
Ticket UUID: f939fed088e64eeefd7d65acd4f91334cb8b0a3b
Title: Report duplicate test names
Type: RFE Version: cedfcfd1b56af9c986190c06ec29d83189dc3304
Submitter: andy Created on: 2014-07-09 01:27:24
Subsystem: 34. tcltest Package Assigned To: dgp
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2014-07-09 02:22:51
Resolution: Invalid Closed By: andy
    Closed on: 2014-07-09 02:22:51
Description:
When copying and pasting tests, it's easy to accidentally use the same test name twice.  I'd like for tcltest to (perhaps optionally) report whenever a test name appears more than once so I can rename the duplicates.
User Comments: andy (claiming to be Andy Goth) added on 2014-07-09 02:22:51:
Ah, I did not see that.  I searched the documentation for duplicate and repeat and reuse.  I did not expect "re-use" which is the spelling actually used in the man page.

dgp added on 2014-07-09 02:14:19:
That's one of the things the "-debug 1" setting
does for you.  Combine it with "-singleproc 1" if
you are concerned that test name dups may take place
in different *.test files of a test suite.