On Tue, Dec 2, 2008 at 5:08 PM, Tim Wintle <[EMAIL PROTECTED]>wrote:

> Looking at PHP-Shindig, are there Javascript tests run? I can see tests
> in some features' directories, but I'm not sure how they are being run,
> or if they are only being executed by Java-shindig.


The Java build does execute them all, but they can certainly be run manually
with the appropriate tools.

I did notice them mentioned in a pom.xml file, but I have no experience
> with Maven and I assume this is restricted to the Java version?
>
> I've looked through the php files test/gadgets/Js*.php, but those appear
> (to my non-php eyes) to be testing the pipeline for passing the
> javascripts through, rather than calling any javascript tests.


That's correct. I suppose there hasn't been a lot of emphasis on this area
because any problems in the js would be seen by the java run version. If
someone wants to create something that will run the tests without running
maven, I'm sure it would be useful.


> Similarly, is there a standardised way to format/organise unit tests for
> additional features (given I have no experience or bias towards any
> javascript testing framework)?


Placing them in the same directory as the code under test is adequate for
most testing frameworks.


>
>
> Thanks for any help,
>
> Tim Wintle
>
>
>

Reply via email to