Re: HOWTO: Writing Perl6 Tests (was: Project Start: Section 1)

[email protected] (Michael G Schwern)
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
In order for TODO tests to work Test::Harness must be upgraded (only 5.8.0
ships with a T::H able to parse TODO tests).  An upgraded version of
Test::Harness can simply be distributed with Parrot the same way Test::More
is.


On Mon, Nov 11, 2002 at 02:31:50PM -0600, Garrett Goebel wrote:
> I can't find any writeup or overview on the Perl5 regression test framework.
> Which is odd, because I'd expect something like that to exist in the core
> documentation. -Perhaps I'm just missing it...

pod/perlhack.pod contains some issues specific to the Perl 5 core.  Most of
them have to do with legacy and bootstrapping problems (ie. when you're
testing yourself with yourself).  The most important for Parrot is "you must
burn a small sacrifice to cross-platform compatibility when writing core
tests", but I don't think you can even write incompatible code in Parrot yet
the way you can in Perl 5.

Otherwise, they're just normal tests and are handled by things like
Test::Tutorial, Test::More and Test.pm.  Details on the test output protocol
can be found in Test::Harness.


> Otherwise useful links include:
> 
> A basic guide to writing tests for Parrot
> http://www.parrotcode.org/docs/tests.pod.html
> 
> chromatic's: An Introduction to Testing
> http://www.perl.com/pub/a/2001/12/04/testing.html
> 
> And there's the Perl QA sites:
> http://qa.perl.org/
> http://magnonel.guild.net/~schwern/cgi-bin/perl-qa-wiki.cgi
> 
> And Michael G. Schwern's:
> http://magnonel.guild.net/~schwern/talks/Writing_A_Test_Library/full_slides/


-- 

Michael G. Schwern   <[email protected]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[email protected]>         Kwalitee Is Job One
Don't ask me lady, I live in beer.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.