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

Re: [PATCH] test-lib: save test counts across invocations

From
Alex Vandiver <alex@chmrr.net>
Date
Sep 1, 2011, 18:38 UTC
Message-ID
<1314902334.5371.17.camel@umgah.localdomain>
In-Reply-To
<20110901163846.GD15018@sigill.intra.peff.net>
On Thu, 2011-09-01 at 12:38 -0400, Jeff King wrote:
> Hmm. What happens when we're wrong? Does our eye-candy just print
> something non-sensical like "13/12", or does prove actually care that we
> run the right number of tests?

prove very much does care -- having a mismatch between the number of tests planned and the number of tests run is an error in the testfile, and is reported as such in big red text. This is because stating how many tests you plan to run gives prove a way (in addition to the exit status) to know if the test stopped prematurely, so all mismatches between plan and actual test counts are reported as testfile failures.

As far as I know prove doesn't have a way to print the estimated time
remaining, though using the contents of the .prove file (if you ran
prove --state=save) to guess it wouldn't be all that hard of a change.
 - Alex
Previous: Jeff KingNext: Jeff King
Message 4 of 6 in “test-lib: save test counts across invocations”
  1. test-lib: save test counts across invocationsThomas Rast, Sep 1, 2011
  2. Junio C HamanoSep 1, 2011
  3. Jeff KingSep 1, 2011
  4. Alex VandiverSep 1, 2011
  5. Jeff KingSep 1, 2011
  6. Thomas RastSep 2, 2011

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.