This project is read-only.

how to integrate this with build

Feb 7, 2014 at 11:31 PM

newbie.. just started using ExtSpec.. Its great.. Right now, I double click on the default.htm to run the specs. How do i do this as part of my automated build .. Is there example for that.
Thanks for your time.
Feb 9, 2014 at 12:24 AM
Good question. It really depends on what your development and build environments are. For better or worse, I personally work primarily with Microsoft environments, so that's the only thing I can speak about with authority.

Our build servers are installed with Visual Studio 2012+ and the Chutzpah Test Adapter extension. From there it's possible to run VSTest.Console.exe with the /UseVsixExtensions switch and pass in all the JavaScript test files. The output of the tests can go directly to a build service (such as TFS) or be written to an XML file to be consumed later (like within CruiseControl.NET).

I know there are plenty of options for other environments though. If you're on the Java stack, I know some folks use Ext Spec with jasmine-maven-plugin.
Feb 10, 2014 at 3:30 PM
Thanks.. we use ant and gradle.. I looked at phantomJS and found blog post of using jasmine and phantomJS with ant
So download phantomJS, download script called: run-jasmine.js from
modified my build.xml to add target for ant as follows from the blog:

<target name="js_unit_test" description="Runs Javascript Unit Tests">
    <property environment="env"/>
    <exec executable="../web/framework/test/phantomjs" failonerror="true">
        <arg line="../web/framework/test/run-jasmine.js" />
        <arg line="../test/ExtSpec1.3.1/" />
Thanks ExtSpec team.. Great job.