git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perl/Git.pm: Writing a test suite
@ 2008-05-30  7:43 Lea Wiemann
  2008-05-30  8:03 ` Rafael Garcia-Suarez
  2008-05-30 10:03 ` Petr Baudis
  0 siblings, 2 replies; 5+ messages in thread
From: Lea Wiemann @ 2008-05-30  7:43 UTC (permalink / raw)
  To: Git Mailing List

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).

-- Lea

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-30 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30  7:43 perl/Git.pm: Writing a test suite Lea Wiemann
2008-05-30  8:03 ` Rafael Garcia-Suarez
2008-05-30 10:03 ` Petr Baudis
2008-05-30 13:44   ` Lea Wiemann
2008-05-30 20:28     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).