[PATCH] run-tests.py: Show paths to failing tests, .err and .out

Mads Kiilerich mads at kiilerich.com
Wed Dec 16 15:45:39 UTC 2009


On 12/16/2009 04:10 PM, Nicolas Dumazet wrote:
> Hello!
>
> 2009/12/16 Mads Kiilerich<mads at kiilerich.com>:
>> run-tests.py: Show paths to failing tests, .err and .out
>>
>> I think this is very convenient when investigating and fixing test failures,
>> but perhaps it must be tweaked further to show paths if and only if
>> it is appropriate.
>
> Ummm... maybe. Could you explain a bit more how you use it?
> For me everytime I launch a test, I know where the test, the .err and
> the .out are. Where's the trick?

Yes, it is well-defined where the files are located and how they are 
named, so this doesn't add anything new. But there is an itch, and this 
helps and works for me.

First of all: Diffs usually show the names of the '-' and '+' files 
initially. The "Expected output" and "Test output" has always annoyed me 
- why not show the names of the actual files? If not the full name then 
at least the basename - or relative to cwd or repo root.

The number of files in tests/ and their 
almost-but-not-completely-similar naming makes tab completion 
not-very-useful, and the names are often so long that spelling them out 
is annoying and error-prone.

I can type and prefer to work on the command line, but I have found that 
the simplest way to open test files in an editor is to cut'n'paste the 
filename. Often it is easiest to open a file in an editor if you have 
the full path to it.

/Mads



More information about the Mercurial-devel mailing list