develooper Front page | perl.perl5.porters | Postings from September 2003

Re: passing arguments to tests

Thread Next
From:
Tels
Date:
September 14, 2003 01:24
Subject:
Re: passing arguments to tests
Message ID:
200309141025.25832@bloodgate.com
-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On Sunday 14 September 2003 07:37, Andrew Savige wrote:
> Ovid wrote:
[snip]
> functionality seems to be superseded by Apache::TestHarness run() method.
>

ObDisclaimer: I haven't got a clue what you are talking about, but this bit 
caught my attention:

> All of the above seem to first chdir into the 't' directory, which I found
> a bit odd because "make test" runs from the directory below that one.
> And I imagine quite a few CPAN modules have tests that will fail if run
> from the 't' directory. Or is writing a test that assumes you are in the
> directory below the 't' directory considered bad style? (if so, I couldn't
> find it mentioned in the docs).

My tests always change into the t directory, which really fools Devel::Cover. 
But I have at least one project, which has a subdirectory in t/ and some 
tests live in that dir and change to it (e.g. one below t/). Which not only 
made Makefile.PL hackery neccessary, but also screws Devel::Cover even 
more...

I don't know about official rules about where to put tests...

Cheers,

Tels

- -- 
 Signed on Sun Sep 14 10:25:15 2003 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Call me Justin, Justin Case."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBP2Ql9HcLPEOTuEwVAQGTTQf/UtgyeDAz6r/5YdQwllJdfmgShWeARm7Y
90EeKBsTwFrXTD2xOYZYD5jPJ/1zAmodl1ZpmE1pFPdw71uuVT81kUhhv8h59rGs
fPTS6EW8sGVv2GuuQ4Bj0OKgbNLoNSgMK1fkcbqIgknIcb1Q4uKU2Fqy2bkPdgz2
RFIOX1OC9s8UK5XAnEQ1To+rSiWKKv6sb0VER/jFGpdyZt1OhDELWd1EtlXKxCXm
SebLZXZfZX2aOxhCCQPCx7/MYAUpfF+91B6Z74hEdMH+EHzfYWGMf1wbVU/RNwWw
66cY8OUOezPbUIKjPaFVBjguIBeTldQJil1b4Hc1WRX+aIVREfKpXA==
=uXS6
-----END PGP SIGNATURE-----


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About