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

Re: credential helper tests

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 23, 2011, 22:26 UTC
Message-ID
<7v7h4yuc8n.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110923221513.GA3087@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 24 quoted lines
> Since we've had a few credential helpers posted to the list recently, I
> really want to try them all out. This can be a little bit tricky for
> automated testing, though, for two reasons:
>
>   - they run on lots of platforms with lots of dependencies
>
>   - they interact with parts of the systems that are opaque to git. So
>     we can't make a test that reliably simulates "and then the user
>     types 'foo' into a dialog box" across all platforms.
>
> Instead, I came up with a separate test script that is intended to be
> run interactively with the user. It runs the helpers through a battery
> of tests, and tells the user what to expect and what to input to any
> dialogs or prompts.
>
> I've run it already on the helpers I've written. I plan on running it
> with the helpers that have been posted, as well. But I also wanted to
> make it public so that authors could use it as a development aid.
>
> It's not integrated with git's tests at all. In theory it could be part
> of t/, but disabled unless the user asks for it. However, I'm not sure
> that makes much sense. It's intended to test helpers that aren't
> necessarily even shipped with git, and wouldn't necessarily even need
> git to run.
Perhaps throw it in somewhere under contrib/ hierarchy?
Previous: Jeff King
Message 2 of 2 in “credential helper tests”
  1. Jeff KingSep 23, 2011
  2. Junio C HamanoSep 23, 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.