[OpenID] ANN: OpenID4Java 0.9.4 - OpenID draft 12 and AX draft 7 support
Jack
jack at jackpot.uk.net
Mon Oct 1 17:32:18 UTC 2007
Pádraic Brady wrote:
>> But as far as OpenID is concerned a test-suite would be even more
>> useful, I think.
>
> I really agree with this.
>
> A lot of developers implementing currently use real-world testing
> against a near-reference service like myopenid.com, but this
> disagrees with best development practice in developing a library
> which can be tested with "mocked" (i.e. faked/pre-defined) inputs.
>
> So I'd say the best method of reference testing is have actual
> reference HTTP requests/responses of each OpenID process documented
> somewhere which can then be used to build an acceptance testing suite
> using whichever testing package is available. This is actually a
> task I'm facing at the moment - I will not be releasing OpenID For
> PHP as stable until a complete acceptance test suite is in place to
> verify it continually.
>
> Example: Tests in JUnit for Java, PHPUnit for PHP, rspec for Ruby,
> etc. all using the exact same reference data? Pretty useful IMO.
That would be useful - although I'm not actually using JUnit and I'm not
convinced that I coud use JUnit to run the kinds of tests I'd like to
see run on an implementation, as opposed to a library. [Sorry - I'm very
Java-centric]
I think JUnit is mainly for module-level testing; the type of
test-engine I'd like to see would exercise a complete RP or OP
implementation, would be a website, and would be language-independent -
like certain online DNS testers.
http://member.dnsstuff.com/pages/dnsreport.php
I haven't really figured out how such an online OpenID tester should work.
--
Jack Cleaver
More information about the general
mailing list