--- Adam Kennedy <[EMAIL PROTECTED]> wrote:

> One of the principles of PITA is that we do as little as possible
> inside the operating system image.
> 
> That includes NOT calculating a judgement call for "PASS" or "FAIL"
> or at least ignoring it if it gets done.

>From reading the PITA docs, I *think* I know what you're talking about,
but I'm not sure.

> So the way I need to handle this is to run the tests, but to keep a 
> complete copy of the test output. And NOT to do this by doing verbose
> mode and trying to reverse engineer the output.

Well, you'd  need to write your own test harness for that.  It's pretty
simple and easy.  You could look at TAPx::Harness and see how easy it
is.  I iterate over the TAPx::Parser::Results objects I get back (why
did I make that a plural class name?) and print out human-readable
strings similar to the Test::Harness output.  Instead of simply
outputting human-readable results like I do, you'd simply output XML. 
You probably wouldn't even need to change any of the logic except for
the 'output' and 'failure_output' calls.
 
> To make matters worse, I need to be isolated from the build process.
> 
> Meaning that I need to somehow I need to have those files put
> somewhere I can pick them up later.

I must be misunderstanding you because this all sounds trivial to do. 
Look in the 'examples' directory and check out the README and you'll
see how you can run tests against something not local (in this case,
it's a wrapper script I have which merely tests that I can fetch
whatever URLs specified).

> So what I discussed with Andy at YAPC (you were there at the time I 
> think?) is that I need to pass some sort of environment variable in,
> and have the harness not only process the tests, but save me a copy
of
> the output in some directory structure, that I can pickup later.

Again, sounds trivial.  Working with TAPx::Parser is *really* easy.

> As an aside, installs OK for me on Win32k...

So far you're the only Windows person to tell me that.  What version of
Windows/Perl/TAPx::Parser are we talking about?

Cheers,
Ovid


--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to