Java Reference
In-Depth Information
<fileset dir="${bin}">
<include name="jsunit.jar"/>
</fileset>
</path>
H
<target name="standalone_test"
description="Runs tests on the local machine">
<junit showoutput="true" haltonerror="true" haltonfailure="true">
<formatter type="plain" usefile="false"/>
<classpath refid="classpath"/>
<sysproperty key="java.util.logging.config.file"
value="${loggingPropertiesFile}"/>
<sysproperty key="browserFileNames"
value="${browserFileNames}"/>
<sysproperty key="description" value="${description}"/>
<sysproperty key="closeBrowsersAfterTestRuns"
value="${closeBrowsersAfterTestRuns}"/>
<sysproperty key="logsDirectory" value="${logsDirectory}"/>
<sysproperty key="port" value="${port}"/>
<sysproperty key="resourceBase" value="${resourceBase}"/>
<sysproperty key="timeoutSeconds" value="${timeoutSeconds}"/>
<sysproperty key="url" value="${url}"/>
<test name="net.jsunit.StandaloneTest"/>
</junit>
</target>
<target name="jsunit_self_test"
description="Runs JsUnit self-tests on the local machine">
<junit showoutput="true" haltonerror="true" haltonfailure="true">
<formatter type="plain" usefile="false"/>
<classpath refid="classpath"/>
<sysproperty key="java.util.logging.config.file"
value="${loggingPropertiesFile}"/>
<sysproperty key="browserFileNames"
value="${browserFileNames}"/>
<sysproperty key="description" value="${description}"/>
<sysproperty key="closeBrowsersAfterTestRuns"
value="${closeBrowsersAfterTestRuns}"/>
<sysproperty key="logsDirectory" value="${logsDirectory}"/>
<sysproperty key="port" value="${port}"/>
<sysproperty key="resourceBase" value="${resourceBase}"/>
<sysproperty key="timeoutSeconds" value="${timeoutSeconds}"/>
<sysproperty key="url"
value=" http://localhost:8080/jsunit/jsunit/
testRunner.html?testPage= http://localhost:8080/jsunit/
jsunit/tests/jsUnitTestSuite.html"/>
<test name="net.jsunit.StandaloneTest"/>
</junit>
</target>
I
</project>
We start our build.xml file by defining the location of the JsUnit installation directory
b ; in this case, it's a subdirectory of the directory containing our example build.xml.
Then we define which web browsers JsUnit will use to test our code with the property
browserFileNames C . This property is a comma-separated list of browser executable
 
Search WWH ::




Custom Search