git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] test-lib-functions: show the test name at the start of verbose output

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 5, 2019, 10:12 UTC
Message-ID
<20190805101237.GA20404@szeder.dev>
In-Reply-To
<nycvar.QRO.7.76.6.1908042113300.46@tvgsbejvaqbjf.bet>
On Sun, Aug 04, 2019 at 09:14:46PM +0200, Johannes Schindelin wrote:
Show 14 quoted lines
> Hi,
> 
> On Sat, 3 Aug 2019, SZEDER Gábor wrote:
> 
> > So the dummy test above would start like this:
> >
> >   expecting success of 'commit works':
> >           echo content >file &&
> >   [...]
> 
> Maybe it would make sense to also mention the test and test case number,
> like so?
> 
> 	expecting success of t9876.54 'it works':
It's easy enough to do so, but I don't readily see any benefits.

The '--verbose-log' of each test script is written to a separate file, whose name already contains the test number, so there is no use including it for each test case in there. When running a test script and looking at its '--verbose' output, then surely all test numbers must be from that particular test script, so there is no use, either.

As for the test case number, since the test cases are not numbered in the test scripts, I just ignore them right away, and look for test names anyway.

Could you give an example?
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 9 in “test-lib-functions: show the test name at the start of verbose output”
  1. test-lib-functions: show the test name at the start of verbose outputSZEDER Gábor, Aug 3, 2019
  2. Johannes SchindelinAug 4, 2019
  3. SZEDER GáborAug 5, 2019
  4. Johannes SchindelinAug 5, 2019
  5. 0/2 tests: show the test name and number at the start of verbose outputSZEDER Gábor, Aug 5, 2019
  6. 2/2 tests: show the test name and number at the start of verbose outputSZEDER Gábor, Aug 5, 2019
  7. 1/2 t0000-basic: use realistic test script names in the verbose testsSZEDER Gábor, Aug 5, 2019
  8. Johannes SchindelinAug 8, 2019
  9. Junio C HamanoAug 8, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.