From: Junio C Hamano Date: Thu, 01 Jul 2010 17:16:36 GMT Subject: Re: [PATCH 8/8] t/README: Document the dangers of printing "ok" / "not ok" Message-ID: <7vhbkj2kcr.fsf@alter.siamese.dyndns.org> In-Reply-To: <1277997004-29504-9-git-send-email-avarab@gmail.com> Ævar Arnfjörð Bjarmason writes: > index 42a4c25..29f795e 100644 > --- a/t/README > +++ b/t/README > @@ -50,6 +50,12 @@ prove and other harnesses come with a lot of useful options. The > # Repeat until no more failures > $ prove -j 15 --state=failed,save ./t[0-9]*.sh > > +The TAP support is completely incidental. A TAP harness is just a > +program that interprets the "ok"/"not ok" (and some other strings) in > +a special way. The only limitation this imposes is that you shouldn't > +echo "ok" or "not ok" by yourself at the beginning of a line, that'll > +confuse the TAP harness. > + I think the above is not suitable for the target audience of the section ("Running Tests"); they are not _writing_ tests. This information (or an enhanced version of it) should come between "Source 'test-lib.sh'" that talks about what the harness gives, and "Skipping tests". Perhaps name that to "Test your stuff". An example... Test your stuff --------------- After sourcing test-lib.sh, you test the parts of the system using the test harness. Your tests will be done in the