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

Re: Git Test Coverage Report (April 30, 2020)

From
Han-Wen Nienhuys <hanwen@google.com>
Date
Apr 30, 2020, 15:12 UTC
Message-ID
<CAFQ2z_PP9Ld+GDctV-v2CDKFamF6zKdJZ_-jhahj_fcm3wy4Hw@mail.gmail.com>
In-Reply-To
<fda6d0db-f79e-f44e-7c2b-b60ed1794cd0@gmail.com>
On Thu, Apr 30, 2020 at 1:22 PM Derrick Stolee <stolee@gmail.com> wrote:
Show 8 quoted lines
>
> Hello,
>
> Here is today's test coverage report.
>
> It appears that _all_ of the reftable code shows up in this report as
> untested. Perhaps that is the state of the world right now, or perhaps
> I need to initialize a GIT_TEST_ environment variable to ensure it runs?
> In either way, do we have any test coverage of that massive contribution?
> Please take a look at the online report [1] for that part of the report,
> as I snipped it out of this email.
(again in plain text)
The reftable code is currently exercised in a small way by t0031-reftable.sh

The upstream library has unittests, see https://cs.bazel.build/search?q=r%3Areftable+f%3A_test.c&num=0, but I believe Git doesn't do unittests?

I'll try to generate a coverage report for them.

You can set GIT_TEST_REFTABLE to see coverage for reftable, but I'm not sure how useful it is given that ~15% of the tests fail.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Previous: Derrick StoleeNext: Johannes Schindelin
Message 2 of 7 in “Git Test Coverage Report (April 30, 2020)”
  1. Derrick StoleeApr 30, 2020
  2. Han-Wen NienhuysApr 30, 2020
  3. Johannes SchindelinMay 1, 2020
  4. Jeff KingMay 3, 2020
  5. Junio C HamanoMay 3, 2020
  6. Han-Wen NienhuysMay 7, 2020
  7. Junio C HamanoMay 7, 2020

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.