On Feb 13, 2008, at 2:45 PM, Edward Z. Yang wrote:
> Is there any way to run *.phpt files inside of
SimpleTest? Travis
> mentioned PHPT <http://phpt.info/>
before, but it seems like the
> code is
> still flaky (alpha-stability) and I couldn't find any
user-friendly
> documentation or instructions on how to fit it into
SimpleTest.
The PHPT code itself would be the best documentation for
that. Check
out the PHPT_Controller_CLI to see how it runs the tests.
Essentially, you need to create a Case object (which can be
done via
PHPT_Case_Parser) if you just have one file (a Suite if
there's
multiple - see PHPT_Suite_Factory for that), then call run()
and
supply it with an object implementing PHPT_Reporter. The
PHPT_Reporter based class is the only custom code you'll
need to
proxy results back to SimpleTest. Shouldn't be more than a
half hour
project.
As to the the alpha state of PHPT, that has been done just
to allow
myself the option of changing the API if necessary. So far,
I've yet
to change anything though and have been using a build from
SVN for a
few months now with only one issue that actually caused a
bug.
Compared to some "stable" software, testing and
otherwise, out there
in PHP-land, I would consider PHPT pretty solid, even in its
alpha
state.
-T
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Simpletest-support mailing list
Simpletest-support lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simp
letest-support
|