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

Re: perl/Git.pm: Writing a test suite

From
RGRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Date
May 30, 2008, 08:03 UTC
Message-ID
<b77c1dce0805300103ke5f0259m336ace5f6f7e2e30@mail.gmail.com>
In-Reply-To
<483FB034.3050507@gmail.com>
2008/5/30 Lea Wiemann <lewiemann@gmail.com>:
Show 12 quoted lines
> Git.pm doesn't currently have a test suite, and I think it should get one.
>
> Since Git.pm makes calls to the git binary, it would seem sensible to me to
> create mock output for the external calls, like Grit (a Ruby API) does it,
> here: http://github.com/mojombo/grit/tree/master/test/fixtures  (Having a
> complete test repository to test against like Ruby/Git (another API) at
> http://repo.or.cz/w/rubygit.git?a=tree;f=tests/files;hb=HEAD is probably too
> brittle and makes it hard to test edge cases.)
>
> I haven't done testing in perl before, so if someone wants to exchange ideas
> and/or help me get this set up, please post here or message me on IRC
> (lea_w/lea_1 on #git at Freenode).

Testing is big in the perl world. I suggest to start with reading : http://www.perlfoundation.org/perl5/index.cgi?testing I'm not overloaded with tuits at the moment, but I'll try to review a bit your testing patches when you post them here.

Previous: Lea WiemannNext: Petr Baudis
Message 2 of 5 in “perl/Git.pm: Writing a test suite”
  1. Lea WiemannMay 30, 2008
  2. Rafael Garcia-SuarezMay 30, 2008
  3. Petr BaudisMay 30, 2008
  4. Lea WiemannMay 30, 2008
  5. Junio C HamanoMay 30, 2008

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.