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

Re: [PATCH 5/5] test-lib: add support for GIT_TODO_TESTS

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 29, 2018, 06:42 UTC
Message-ID
<xmqqk1kwo04u.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20181127225445.30045-5-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 6 quoted lines
> -To skip tests, set the GIT_SKIP_TESTS variable. Individual tests can
> -be skipped:
> +To skip tests, set either the GIT_SKIP_TESTS or GIT_TODO_TESTS
> +variables. The difference is that with SKIP the tests won't be run at
> +all, whereas they will be run with TODO, but in success or failure
> +annotated as a TODO test.
It is entirely unclear what "They will be run with TODO" means.

I know what you want to achieve from the code change; instead of just skipping, you want to cause as much side effect the skipped test piece wants to make until it fails and dies, without taking the remainder of the test down. And I kind of agree that sometimes such a mode would be very useful (i.e. when you do not want to bother separating such a failing test properly into the setup part that would affect later tests and the one-thing-it-wants-to-test part that can now be safely skipped). From the cursory look, the code change in this patch is sensible realization of that idea.

Having said all that, I won't picking this up until next month ;-) I really want to see that everybody is concentrating on making sure that 2.20 is solid before playing with shiny new toys.

Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: SZEDER Gábor
Message 5 of 7 in “t/README: make the 'Skipping tests' section less confusing”
  1. 1/5 t/README: make the 'Skipping tests' section less confusingÆvar Arnfjörð Bjarmason, Nov 27, 2018
  2. 3/5 t/README: re-flow a paragraphÆvar Arnfjörð Bjarmason, Nov 27, 2018
  3. 4/5 test-lib: add more exhaustive GIT_SKIP_TESTS testingÆvar Arnfjörð Bjarmason, Nov 27, 2018
  4. 5/5 test-lib: add support for GIT_TODO_TESTSÆvar Arnfjörð Bjarmason, Nov 27, 2018
  5. Junio C HamanoNov 29, 2018
  6. SZEDER GáborDec 4, 2018
  7. 2/5 t/README: modernize description of GIT_SKIP_TESTSÆvar Arnfjörð Bjarmason, Nov 27, 2018

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.