Permalink
Browse files

Added jsTestDriver target to build process

  • Loading branch information...
1 parent 266efec commit 2549d924d54c03bf22a4995b00efdcc3e4561a2d @kevinwestern committed May 21, 2012
@@ -13,7 +13,7 @@
</target>
<target name="clean">
- <delete dir="${dist}" />
+ <delete dir="${dist}/javascripts/*.js" />
</target>
<target name="validate">
@@ -50,7 +50,20 @@
</apply>
</target>
- <target name="build" depends="clean,validate,concat,minify">
+ <target name="test" description="(PRIVATE) Run tests through remote jsTestDriver">
+ <exec executable="java" failonerror="true">
+ <arg line="-jar tools/JsTestDriver-1.3.4.b.jar"/>
+ <arg line="--config jsTestDriver.conf"/>
+ <arg line="--server http://localhost:4224"/>
+ <arg line="--testOutput test-output"/>
+ <arg line="--raiseOnFailure true"/>
+ <arg line="--verbose"/>
+ <arg line="--reset"/>
+ <arg line="--tests all"/>
+ </exec>
+ </target>
+
+ <target name="build" depends="clean,validate,concat,test,minify">
</target>
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<testsuite name="Firefox_110_Mac_OS.AppSpec hasOwn" errors="0" failures="1" tests="1" time="0.0010">
+<testcase classname="Firefox_110_Mac_OS.AppSpec hasOwn" name="should return true if the object has its own property" time="0.0010">
+<failure type="failed" message="[{&quot;message&quot;:&quot;Expected false to equal true.&quot;,&quot;name&quot;:&quot;Error&quot;,&quot;stack&quot;:&quot;\t\t\t()@spec/AppSpec.js:4\n\t\t\t()@lib/JasmineAdapter.js:33\n\t\t\t([object Object],b,b)@lib/JasmineAdapter.js:129\n\t\t\t(\&quot;runTestConfiguration\&quot;,[object Arguments])@http://localhost:4224/static/runner.js:356\n\t\t\t([object Object],b,b)@http://localhost:4224/static/runner.js:356\n\t\t\t([object Object],b,b)@http://localhost:4224/static/runner.js:356\n\t\t\t()@http://localhost:4224/static/runner.js:356\n\t\t\t([object Array],b,b,false)@http://localhost:4224/static/runner.js:356\n\t\t\t([object Array],false)@http://localhost:4224/static/runner.js:356\n\t\t\t([object Array])@http://localhost:4224/static/runner.js:356\n\t\t\tb([object Array])@http://localhost:4224/static/jstestdrivernamespace.js:1\n\t\t\t(\&quot;{\\\&quot;command\\\&quot;:\\\&quot;runTests\\\&quot;,\\\&quot;parameters\\\&quot;:[\\\&quot;[\\\\\\\&quot;all\\\\\\\&quot;]\\\&quot;,\\\&quot;false\\\&quot;,\\\&quot;\\\&quot;]}\&quot;,\&quot;success\&quot;,[object XMLHttpRequest])@http://localhost:4224/static/runner.js:356\n\t\t\tb(\&quot;{\\\&quot;command\\\&quot;:\\\&quot;runTests\\\&quot;,\\\&quot;parameters\\\&quot;:[\\\&quot;[\\\\\\\&quot;all\\\\\\\&quot;]\\\&quot;,\\\&quot;false\\\&quot;,\\\&quot;\\\&quot;]}\&quot;,\&quot;success\&quot;,[object XMLHttpRequest])@http://localhost:4224/static/jstestdrivernamespace.js:1\n\t\t\t([object Object],[object XMLHttpRequest],\&quot;success\&quot;,\&quot;{\\\&quot;command\\\&quot;:\\\&quot;runTests\\\&quot;,\\\&quot;parameters\\\&quot;:[\\\&quot;[\\\\\\\&quot;all\\\\\\\&quot;]\\\&quot;,\\\&quot;false\\\&quot;,\\\&quot;\\\&quot;]}\&quot;)@http://localhost:4224/static/lib/jquery-min.js:141\n\t\t\t([object Event])@http://localhost:4224/static/lib/jquery-min.js:140\n\t\t\t&quot;}]"> ()@spec/AppSpec.js:4
+ ()@lib/JasmineAdapter.js:33
+ ([object Object],b,b)@lib/JasmineAdapter.js:129
+
+
+</failure>
+</testcase>
+</testsuite>
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<testsuite name="Firefox_110_Mac_OS.AppSpec namespace" errors="0" failures="1" tests="1" time="0.0">
+<testcase classname="Firefox_110_Mac_OS.AppSpec namespace" name="should create a namespaced object" time="0.0">
+<failure type="failed" message="[{&quot;message&quot;:&quot;TypeError: TestBuildOne.LevelOne is undefined in http://localhost:4224/test/spec/AppSpec.js (line 12)&quot;,&quot;name&quot;:&quot;TypeError&quot;,&quot;stack&quot;:&quot;\t\t\t()@spec/AppSpec.js:12\n\t\t\t&quot;}]"> ()@spec/AppSpec.js:12
+
+
+</failure>
+</testcase>
+</testsuite>
Oops, something went wrong.

0 comments on commit 2549d92

Please sign in to comment.