Code Search for Developers
 
 
  

jsunit.xml from cruisecontrol at Krugle


Show jsunit.xml syntax highlighted

<?xml version="1.0" encoding="utf-8"?>

<project name="JsUnit" default="create_distribution" basedir=".">

	<!--
     The following are the properties used to configure the JsUnit server.  You need to provide values for the mandatory properties.
     See the documentation at http://www.jsunit.net for more information.
     -->

	<property name="browserFileNames" value="${env.BROWSER_PATH}" description="browserFileNames is the list of browsers in which to run tests when StandaloneTest is invoked on this machine. For a JsUnit Server, this is a mandatory property. For example: 'c:\program files\internet explorer\iexplore.exe,c:\program files\netscape\netscape7.1\netscp.exe'" />

	<property id="closeBrowsersAfterTestRuns" name="closeBrowsersAfterTestRuns" value="false" description="closeBrowsersAfterTestRuns determines whether to attempt to close browsers after test runs. This is not a mandatory property. The default is true. For example: 'true'" />

	<property id="description" name="description" value="" description="description is a human-readable description of a standard or farm server. This is not a mandatory property. The default is blank. For example: 'This is our Mac - it's only running Safari right now'" />

	<property id="ignoreUnresponsiveRemoteMachines" name="ignoreUnresponsiveRemoteMachines" value="" description="ignoreUnresponsiveRemoteMachines is a property used only by the JsUnit Farm Server and the distributed_test target. Its value is whether to ignore a remove machine that does not respond.  If true, test runs will be green even if one or more remove machines fail to respond; if false, an unresponsive remove machine results in a failure.  This is not a mandatory property.  Its default is false. For example: 'true'" />

	<property id="logsDirectory" name="logsDirectory" value="${basedir}/jsunit/logs" description="logxsDirectory is the directory in which the JsUnitStandardServer stores the XML logs produced from tests run. It can be specified relative to the working directory. This is not a mandatory property. If not specified, the directory called 'logs' inside resourceBase is assumed. For example: 'c:\jsunit\java\logs'" />

	<property id="port" name="port" value="8585" description="port is the port on which the JsUnitStandardServer runs. This is not a mandatory property. If not specified, 8080 is assumed. For exapmle: '8080'" />

	<property id="remoteMachineURLs" name="remoteMachineURLs" value="" description="remoteMachineURLs is a property used only by the JsUnit Farm Server and the distributed_test target. Its value is the list of URLs of remove machines to which a request to run tests will be sent. For example: 'http://machine1.company.com:8080,http://localhost:8080,http://192.168.1.200:9090'" />

	<property id="resourceBase" name="resourceBase" value="jsunit" description="resourceBase is the directory that the JsUnitStandardServer considers to be its document root. It can be specified relative to the working directory. This is not a mandatory property. If not specified, the working directory is assumed. For example: 'c:\jsunit'" />

	<property id="timeoutSeconds" name="timeoutSeconds" value="100" description="timeoutSeconds is the number of seconds to wait before timing out a browser during a test run. This is not a mandatory property. If not specified, 60 is assumed. For example: '60'" />

	<property id="url" name="url" value="http://localhost:8585/jsunit/testRunner.html?testPage=http://localhost:8585/jsunit/tests/jsUnitTestSuite.html&amp;autoRun=true&amp;submitResults=localhost:8585/jsunit/acceptor" description="url is the URL (HTTP or file protocol) to open in the browser. For a JsUnit Server, this is a mandatory property for a test run if the server is not passed the 'url' parameter. For example: 'file:///c:/jsunit/testRunner.html?testPage=c:/jsunit/tests/jsUnitTestSuite.html'" />

	<!--
     The remainder of this build file is not intended to be modified by the end user.
     Those targets whose name begins with an underscore are not intended to be run directly by the end user.
     -->

	<property name="source_core" location="jsunit/java/source_core" />
	<property name="source_server" location="jsunit/java/source_server" />
	<property name="tests_core" location="jsunit/java/tests_core" />
	<property name="tests_server" location="jsunit/java/tests_server" />
	<property name="bin" location="jsunit/java/bin" />
	<property name="lib" location="jsunit/java/lib" />
	<property name="testlib" location="jsunit/java/testlib" />
	<property name="config" location="jsunit/java/config" />
	<property name="loggingPropertiesFile" location="jsunit/logging.properties" />

	<path id="classpath">

		<fileset dir="${lib}">
			<include name="*.jar" />
		</fileset>
		<fileset dir="${bin}">
			<include name="jsunit.jar" />
		</fileset>
		<dirset dir="${config}" />
	</path>

	<path id="self_tests_classpath">
		<fileset dir="${lib}">
			<include name="*.jar" />
		</fileset>
		<fileset dir="${testlib}">
			<include name="*.jar" />
		</fileset>
		<fileset dir="${bin}">
			<include name="jsunit.jar" />
		</fileset>
		<dirset dir="${config}" />
	</path>

	<target name="_compile_source" description="Compiles the source">
		<delete dir="${bin}/net" />
		<javac srcdir="${source_core}" destdir="${bin}" debug="true">
			<classpath>
				<fileset dir="${lib}">
					<include name="*.jar" />
				</fileset>
			</classpath>
		</javac>
		<javac srcdir="${source_server}" destdir="${bin}" debug="true">
			<classpath>
				<fileset dir="${lib}">
					<include name="*.jar" />
				</fileset>
				<path location="${bin}" />
			</classpath>
		</javac>
	</target>

	<target name="_compile_tests" description="Compiles the self-tests">
		<javac srcdir="${tests_core}" destdir="${bin}" debug="true">
			<classpath refid="self_tests_classpath" />
		</javac>
		<javac srcdir="${tests_server}" destdir="${bin}" debug="true">
			<classpath refid="self_tests_classpath" />
		</javac>
	</target>

	<target name="_create_jar" depends="_compile_source" description="Creates jsunit.jar">
		<delete file="${bin}/jsunit.jar" />
		<jar jarfile="${bin}/jsunit.jar" basedir="${bin}" />
		<delete dir="${bin}/net" />
	</target>

	<target name="_generateJsUnitPropertiesSample" description="Generates the jsunit.properties.sample file">
		<xslt in="build.xml" out="jsunit.properties.sample" destdir="." style="xsl/buildDotXmlToJsUnitDotProperties.xsl">
		</xslt>
	</target>

	<target name="_run_unit_tests" depends="_compile_tests" description="Runs the JsUnit Java unit tests">
		<junit fork="yes" haltonfailure="false" forkmode="once" showoutput="yes" printsummary="withOutAndErr" failureproperty="junit_test_failed">
			<formatter type="plain" usefile="false" />
			<classpath refid="self_tests_classpath" />
			<classpath path="${bin}" />
			<test name="net.jsunit.UnitTestSuite" />
		</junit>
		<fail if="junit_test_failed" />
	</target>

	<target name="_run_all_tests" depends="_create_jar,_compile_tests" description="Runs all the JsUnit Java tests.  Used in the continuous build">
		<junit fork="yes" haltonfailure="false" forkmode="once" showoutput="yes" printsummary="withOutAndErr" failureproperty="junit_test_failed">
			<formatter type="xml" />
			<classpath refid="self_tests_classpath" />
			<classpath path="${bin}" />
			<sysproperty key="java.security.manager" value="com.thoughtworks.ashcroft.runtime.JohnAshcroft" />
			<test name="net.jsunit.PureUnitTestSuite" />
		</junit>
		<junit fork="yes" haltonfailure="false" forkmode="once" showoutput="yes" printsummary="withOutAndErr" failureproperty="junit_test_failed">
			<formatter type="xml" />
			<classpath refid="self_tests_classpath" />
			<classpath path="${bin}" />
			<test name="net.jsunit.ImpureUnitTestSuite" />
		</junit>
		<junit fork="yes" haltonfailure="false" forkmode="once" showoutput="yes" printsummary="withOutAndErr" failureproperty="junit_test_failed">
			<formatter type="xml" />
			<classpath refid="self_tests_classpath" />
			<classpath path="${bin}" />
			<test name="net.jsunit.FunctionalTestSuite" />
		</junit>
		<junit fork="yes" haltonfailure="false" forkmode="once" showoutput="yes" printsummary="withOutAndErr" failureproperty="junit_test_failed">
			<formatter type="xml" />
			<classpath refid="self_tests_classpath" />
			<classpath path="${bin}" />
			<test name="net.jsunit.FarmServerFunctionalTestSuite" />
		</junit>
		<fail if="junit_test_failed" />
	</target>

	<target name="create_distribution" depends="_create_jar,_run_unit_tests" description="Creates and tests the JsUnit distribution" />

	<target name="start_server" description="Starts a JsUnit Server">
		<java fork="true" classname="net.jsunit.JsUnitStandardServer">
			<classpath refid="classpath" />
			<sysproperty key="java.util.logging.config.file" value="${loggingPropertiesFile}" />
			<sysproperty key="description" value="${description}" />
			<sysproperty key="browserFileNames" value="${browserFileNames}" />
			<sysproperty key="url" value="${url}" />
			<sysproperty key="port" value="${port}" />
			<sysproperty key="resourceBase" value="${resourceBase}" />
			<sysproperty key="logsDirectory" value="${logsDirectory}" />
			<sysproperty key="timeoutSeconds" value="${timeoutSeconds}" />
			<sysproperty key="closeBrowsersAfterTestRuns" value="${closeBrowsersAfterTestRuns}" />
		</java>
	</target>

	<target name="start_farm_server" description="Starts a JsUnit Farm Server">
		<java fork="true" classname="net.jsunit.JsUnitFarmServer">
			<classpath refid="classpath" />
			<sysproperty key="java.util.logging.config.file" value="${loggingPropertiesFile}" />
			<sysproperty key="description" value="${description}" />
			<sysproperty key="ignoreUnresponsiveRemoteMachines" value="${ignoreUnresponsiveRemoteMachines}" />
			<sysproperty key="logsDirectory" value="${logsDirectory}" />
			<sysproperty key="port" value="${port}" />
			<sysproperty key="remoteMachineURLs" value="${remoteMachineURLs}" />
			<sysproperty key="resourceBase" value="${resourceBase}" />
			<sysproperty key="url" value="${url}" />
		</java>
	</target>

	<target name="stop_server" description="Stops the JsUnit Server">
		<java fork="true" classname="org.mortbay.stop.Main" failonerror="true">
			<classpath refid="classpath" />
		</java>
	</target>

	<target name="jsunit" description="Runs tests on the local machine">
		<echo message="${lib}"/>
		<echo message="${basedir}"/>
		<junit showoutput="true" haltonerror="true" haltonfailure="true">
			<formatter type="plain" usefile="false" />
			<classpath refid="classpath" />
			<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="distributed_test" description="Runs tests the remote machines">
		<junit showoutput="true" haltonerror="true" haltonfailure="true">
			<formatter type="plain" usefile="false" />
			<classpath refid="classpath" />
			<sysproperty key="browserFileNames" value="${browserFileNames}" />
			<sysproperty key="description" value="${description}" />
			<sysproperty key="ignoreUnresponsiveRemoteMachines" value="${ignoreUnresponsiveRemoteMachines}" />
			<sysproperty key="logsDirectory" value="${logsDirectory}" />
			<sysproperty key="port" value="${port}" />
			<sysproperty key="remoteMachineURLs" value="${remoteMachineURLs}" />
			<sysproperty key="resourceBase" value="${resourceBase}" />
			<sysproperty key="url" value="${url}" />
			<test name="net.jsunit.DistributedTest" />
		</junit>
	</target>

</project>




See more files for this project here

cruisecontrol

CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous builds.

Project homepage: http://sourceforge.net/projects/cruisecontrol
Programming language(s): Java,XML
License: other

  app/
    css/
      jsUnitStyle.css
      readme
    emptyPage.html
    jsTestHelper.js
    jsUnitCore.js
    jsUnitMockTimeout.js
    jsUnitTestManager.js
    jsUnitTestSuite.js
    jsUnitTracer.js
    jsUnitVersionCheck.js
    main-counts-errors.html
    main-counts-failures.html
    main-counts-runs.html
    main-counts.html
    main-data.html
    main-errors.html
    main-frame.html
    main-loader.html
    main-progress.html
    main-results.html
    main-status.html
    testContainer.html
    testContainerController.html
    xbDebug.js
  css/
    jsUnitStyle.css
  images/
    green.gif
    logo_jsunit.gif
    powerby-transparent.gif
    red.gif
  java/
    bin/
    config/
      farm_xwork.xml
      xwork.xml
    lib/
      ant.jar
      commons-el.jar
      commons-logging.jar
      jasper-compiler.jar
      jasper-runtime.jar
      javax.servlet.jar
      jdom.jar
      jsunit.jar
      junit.jar
      ognl.jar
      org.mortbay.jetty.jar
      oscore.jar
      rife-continuations.jar
      start.jar
      stop.jar
      webwork-2.2-beta-4.jar
      xercesImpl-2.6.2.jar
      xwork-1.1.jar
  licenses/
    JDOM_license.txt
    Jetty_license.html
    MPL-1.1.txt
    gpl-2.txt
    index.html
    lgpl-2.1.txt
    mpl-tri-license-c.txt
    mpl-tri-license-html.txt
  tests/
    ajax_periodical_refresh_active_build_executer_test.html
    ajax_periodical_refresh_active_build_output_executer_oncomplete_test.html
    ajax_periodical_refresh_dashboard_executer_oncomplete_test.html
    ajax_periodical_refresh_dashboard_update_inactive_partial_links_test.htm
    ajax_periodical_refresh_dashboard_update_project_box_test.html
    ajax_refresh_active_build_commit_message_test.html
    ajax_tree_navigator_test.html
    ajax_update_icons_and_invoke_callback_function_test.html
    build_bar_observer_test.html
    build_detail_toggle_tab_content_test.html
    build_profile_observer_test.html
    build_profile_test.html
    cc_status_observer_test.html
    clean_text_node_test.html
    display_toolkit_test.html
    escape_project_name_test.html
    eval_timer_object_test.html
    evaluate_time_to_seconds_test.html
    get_link_by_building_status_test.html
    jsUnitTestSuite.html
    rounded_test.html
    statistics_observer_test.html
    timer_test.html
    toggle_tab_content_test.html
    toggle_tab_test.html
    tooltip_observer_test.html
    word_break_inserter_test.html
  index.jsp
  jsunit.xml
  logging.properties
  testRunner.html