El jue, 21-02-2008 a las 09:45 -0800, Cassie escribió: > So Shindig definitely needs its own tests. The spec will only include > compliance tests because thats all it can/should enforce. Compliance tests > will never be equivalent to a regular testing suite because the spec allows > a lot of different ways to handle one call. >
Not to mention that regression tests added because of bugs that are not spec related would never make into the compliance suite, but are valid to ensure the same bug does not creep in again. > It can't test for instance that a person's name field is equal to what you > think it should be. That could only be in a shindig specific test. The > compliance test would only make sure that the call returned an > opensocial.Name object and had at least one field filled out. > > Hope that helps explain things. > > - Cassie > > > On Thu, Feb 21, 2008 at 9:15 AM, Bruno Bowden <[EMAIL PROTECTED]> wrote: > > > Fantastic Chris. Thanks for the contributions. > > > > To help keep the two versions in sync, we should have test cases that can > > be > > run against both versions. That's something that belongs with the spec and > > outside of Shindig. > > As said above, compliance tests belong to the spec, but other tests, for instance in areas where the spec is still not "cooked" or they have been written to check a bug, they will be shindig specific, or even language specific (imagine a test that only fails with jdk1.X, or only with a certain PHP version running the code) > > > > On Thu, Feb 21, 2008 at 4:30 AM, Chris Chabot <[EMAIL PROTECTED]> wrote: > > > > > Hey guys, > > > > > > Since no one likes to hear "it's being worked on" without being able > > > to see it, and i now have the first visible workings of a php version > > > i thought i'd post a bit of a progress report. > > > > > > I've been working for the last 7 or 8 days on a php port of the java > > > shindig code, I've chosen to follow the structure as closely as > > > possible where the language differences allows for it to make > > > supporting the same features and having the same behavior easier. Now > > > it's been a bit of a challenge, partially because the last time I've > > > read any java code is 8 years behind me, and partially since it's a > > > huge undertaking to port an entire large feature set and service > > > without being able to test it until all the components are done, and > > > php being a completely different environment then the java/jetty one. > > > > > > I've now reached the point where the basic structure is working, and > > > it successfully renders the todo.xml gadget into a valid and correct > > > gadget. > > > > > > I'm still working on the js, rpc, proxy and gadget token bits so their > > > not included in this, also the remote content gadgets are not > > > supported yet (though that will be very quick to follow). > > > > > > I expect to have those lacking bits done in the near future, and > > > combined with a good bit of testing i hope to have a 'patch' ready for > > > submission soonish (and i need to formalize the permission to submit > > > it under the apache license with my employer, but that is a mere > > > formality). > > > > > > Feature wise it's completely compatible to the java cousin, including > > > the 'features', message bundle, etc support and only the GadgetServer, > > > web service and caching parts are different from the java version (in > > > memory caching for instance couldn't work in a multi process php > > > environment), and i think i'll soon add a few more php specific > > > optimizations soon to speed the whole thing up a bit as well. > > > > > > The code i'm using for porting is from feb 14th, i'll evaluate the > > > patches that happen in the meantime once i've got everything done, > > > since doing both would be to much of a strain progress right now. > > > > > > A working demo can be seen here: > > > > > > > > http://shindig.chabotc.com/ifr/?url=http://www.labpixies.com/campaigns/todo/todo.xml > > > > > > And the code-so-far for those who are interested in a sneak preview of > > > it is here: > > > http://www.chabotc.com/php-shindig.tar.gz > > > Cool to see things moving in this front. > > > Please do keep in mind that it's still work in progress, so i know > > > there's no gadget container yet, no proxy implementation etc; If you > > > just want a fully functional php shindig server, please wait a little > > > more since this is nothing but a code preview :) > > > > > > -- Chris > > > > > > > > -- Santiago Gala http://memojo.com/~sgala/blog/

