You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2001/10/05 05:51:47 UTC

cvs commit: modperl-docs/src/devel/writing_tests writing_tests.pod

stas        01/10/04 20:51:47

  Modified:    src/devel/writing_tests writing_tests.pod
  Log:
  - merging comments from clayton cottingham
  
  Revision  Changes    Path
  1.9       +18 -2     modperl-docs/src/devel/writing_tests/writing_tests.pod
  
  Index: writing_tests.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/devel/writing_tests/writing_tests.pod,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- writing_tests.pod	2001/09/22 09:51:03	1.8
  +++ writing_tests.pod	2001/10/05 03:51:47	1.9
  @@ -147,6 +147,19 @@
   For more details about the C<Test::Harness> module please refer to its
   manpage.
   
  +=head2 Prerequisites
  +
  +In order to use C<Apache::Test> it has to be installed first.
  +
  +Install C<Apache::Test> using the familiar procedure:
  +
  +  % cd Apache-Test
  +  % perl Makefile.PL
  +  % make && make test && make install
  +
  +If you install mod_perl 2.x, you get C<Apache::Test> installed as
  +well.
  +
   =head2 One Part Perl Tests: Response only
   
   If you write only a response part of the test, C<Apache::Test> will
  @@ -203,6 +216,9 @@
     }
     1;
   
  +[F] C<Apache::Const> is mod_perl 2.x's package, if you test under 1.x,
  +use the C<Apache::Constants> module instead [/F].
  +
   The configuration part for this test will be autogenerated by the
   C<Apache::Test> framework and added to the autogenerated file
   I<t/conf/httpd.conf>. In our case the following configuration section
  @@ -386,7 +402,7 @@
     }
     1;
   
  -The only thing it does is setting the I<text/plan> header and
  +The only thing it does is setting the I<text/plain> header and
   responding with I<"Amazing!">.
   
   Next prepare the I<Makefile.PL> file:
  @@ -424,7 +440,7 @@
     }
   
   C<Apache::TestMM> will do a lot of thing for us, such as building a
  -complete Makefile with prope I<'test'> and I<'clean'> targets,
  +complete Makefile with proper I<'test'> and I<'clean'> targets,
   automatically converting I<.PL> and I<conf/*.in> files and more.
   
   As you see we specify a prerequisites hash with I<Apache::Test> in it,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org