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

[ANNOUNCE] Sharness - Test library derived from Git

From
Mathias Lafeldt <mathias.lafeldt@gmail.com>
Date
Jul 17, 2012, 08:06 UTC
Message-ID
<CAMFa-2hS-5CHQj79KMGwY7_qv6nGiK+9cKeDdihMVmSoxfsesQ@mail.gmail.com>
Hi,

I've been wanting to announce Sharness [1] on this list for quite some time now, but never managed to do so. With the release of version 0.2.4, I think it's about time to change that.

Sharness is a shell-based test harness library. It was derived from the Git project and is basically a generalized and stripped-down version of t/test-lib.sh (I basically removed all things specific to Git). So when you know how to write tests for Git, it should be very familiar.

I've been using Sharness to test my command-line applications [2] for over a year now. It's especially useful when you're doing continuous integration with a service like Travis CI [3].

Development of Sharness takes place at GitHub [4]. If you're interested, there might be some things I could contribute back to Git, e.g. the API documentation [5] I wrote in TomDoc format.

Looking forward to your feedback.

[1] http://mlafeldt.github.com/sharness [2] https://github.com/mlafeldt/sharness#projects-using-sharness [3] http://travis-ci.org/ [4] https://github.com/mlafeldt/sharness [5] https://github.com/mlafeldt/sharness/blob/master/API.md

-Mathias
Next: Ævar Arnfjörð Bjarmason
Message 1 of 5 in “[ANNOUNCE] Sharness - Test library derived from Git”
  1. Mathias LafeldtJul 17, 2012
  2. Ævar Arnfjörð BjarmasonJul 17, 2012
  3. Mathias LafeldtJul 20, 2012
  4. Matthieu MoyJul 20, 2012
  5. dag@cray.comJul 20, 2012

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.