Permalink
Browse files

Fixed a link and removed functional testing doc.

  • Loading branch information...
1 parent 7f06f9a commit 24ac218d5e2a580ca6c72387e3c25199087bdb10 Joe Catera committed Oct 2, 2012
Showing with 1 addition and 176 deletions.
  1. +1 −1 docs/dev_guide/topics/mojito_run_dyn_defined_mojits.rst
  2. +0 −175 docs/dev_guide/topics/mojito_testing.rst
@@ -310,7 +310,7 @@ Adapter Functions
The functions ``ac.done``, ``ac.flush``, and ``ac.error`` defined in the ``adapter``
object are actually implemented by the Mojito framework. For example, before ``adapter.done``
is executed, Mojito runs the ``done`` function defined in
-`output-adapter.common.js <http://github.com/yahoo/mojito/source/lib/app/addons/ac/output-adapter.common.js>`_,
+`output-adapter.common.js <https://github.com/yahoo/mojito/blob/develop/lib/app/addons/ac/output-adapter.common.js>`_,
which collects metadata and configuration.
@@ -510,182 +510,7 @@ the following commands:
- ``$ mojito test foo``
- ``$ mojito test foo-test``
-.. _moj_tests-func_unit:
-Functional/Unit Tests
-=====================
-
-Mojito comes with functional tests that you can run with the npm module
-`Arrow <https://github.com/yahoo/arrow/>`_, a testing framework that fuses together JavaScript,
-Node.js, PhantomJS, and Selenium. Arrow lets you write tests in
-`YUI Test`_ that can be executed on the client or server.
-You can also write your own functional/unit tests with Arrow. Mojito recommends that contributors
-write Arrow functional/unit tests for their code to accelerate the process of merging pull requests.
-
-The following sections show you how to set up your environment and run the unit and
-functional tests that come with Mojito. In the future, we will also provide you with instructions
-for writing Arrow tests for your code contributions.
-
-.. _func_unit-builtin:
-
-Running Mojito's Built-In Tests
--------------------------------
-
-.. _func_unit-reqs:
-
-Required Software
-#################
-
-- `Java <http://www.java.com/en/download/manual.jsp>`_
-- `Node.js 0.6 or higher (packaged with npm) <http://nodejs.org/>`_
-- `Git <http://git-scm.com/downloads>`_
-
-.. _func_unit_reqs-macs:
-
-Macs
-####
-
-.. _func_unit-macs_setup:
-
-Setting Up
-~~~~~~~~~~
-
-#. `Download PhantomJS <http://www.doctor46.com/phantomjs>`_.
-#. Copy the phantomjs binary to ``/usr/local/bin/``.
-#. Link ``phantomjs`` to ``/node_modules`` so Node.js can find it.
-
- ``$ sudo ln -s /usr/local/lib /node_modules``
-#. Install Arrow:
-
- ``$ npm install arrow -g``
-#. Install commander:
-
- ``$ npm install commander -g``
-#. Start the Arrow server to confirm it was installed:
-
- ``$ arrow_server``
-#. Shut down the Arrow server with ``Ctrl-C^`` command.
-
-.. _func_unit_reqs-linux:
-
-Linux
-#####
-
-.. _func_unit-linux_setup:
-
-Setting Up
-~~~~~~~~~~
-
-#. Follow the `installation instructions for PhantomJS <http://www.doctor46.com/phantomjs>`_.
-#. Copy the phantomjs binary to ``/usr/local/bin/``.
-#. Link ``phantomjs`` to ``/node_modules`` so Node.js can use it.
-
- ``$ sudo ln -s /usr/local/lib /node_modules``
-#. Install Arrow:
-
- ``$ npm install arrow -g``
-#. Start the Arrow server to confirm it was installed:
-
- ``$ arrow_server``
-#. Shut down the Arrow server with ``Ctrl-C^`` command.
-
-
-.. _func_unit-install_selenium:
-
-Installing Selenium (recommended)
-#################################
-
-The following instructions work for both Macs and Linux.
-
-#. `Download the Selenium JAR executable <http://selenium.googlecode.com/files/selenium-server-standalone-2.22.0.jar>`_.
-#. Start the Selenium server:
-
- ``$ java -jar path/to/selenium-server.jar``
-#. Confirm Selenium is running by going to the following URL: `http://localhost:4444/wd/hub/static/resource/hub.html <http://localhost:4444/wd/hub/static/resource/hub.html>`_
-#. Shut down the Selenium server with ``Ctrl-C^`` command.
-
-.. _func_unit-run:
-
-Running Tests
-#############
-
-.. _func_unit_run-batch:
-
-Running Batch Tests
-~~~~~~~~~~~~~~~~~~~
-
-The following instructions show you how to run
-Arrow tests with the wrapper script ``run.js``,
-which allows you to run batch tests.
-For example, you can use ``run.js`` to run all of the functional
-or unit tests with one command.
-
-#. Clone the Mojito repository.
-
- ``$ git clone https://github.com/yahoo/mojito.git``
-#. Change to the ``mojito/tests`` directory.
-#. Start the Selenium server in the background.
-
- ``$ java -jar path/to/selenium-server.jar &``
-#. Run the unit tests for the framework and client:
-
- ``$ ./run.js test -u --group fw,client,server``
-
- TBD: error: Error: ENOENT, no such file or directory
- '/private/tmp/mojito/tests/unit//private/tmp/mojito/tests/unit/lib/app/addons/ac/report.xml'
-
-#. You can run all the functional tests with the below command. You can
- terminate the tests at any time with **Ctl-C**.
-
- ``$ ./run.js test -f``
-#. To view the reports for the tests in the following directories:
-
- - ``$ ./artifacts/arrowreport/unit/``
- - ``$ ./artifacts/arrowreport/func/``
-
- Note: You will not get a report If you terminated any tests before they completed.
-
-.. _func_unit_run-arrow:
-
-Using Arrow to Run Tests
-~~~~~~~~~~~~~~~~~~~~~~~~
-
-You can also separately run unit and functional tests directly
-with the ``arrow`` command. You pass Arrow a test descriptor, which
-is a JSON configuration file that describes and organizes your tests.
-For an overview of Arrow and the command-line options, see
-the `Arrow README <https://github.com/yahoo/arrow/blob/master/README.md>`_.
-
-
-
-In the following steps, you'll start a routing application, run a test with Arrow,
-and then look at the test reports. Afterward, you should be able to
-run some of the other tests included with Mojito.
-
-#. Start Selenium in the background if it is not running already. You can confirm that it's running
- by going to http://127.0.0.1:4444/wd/hub/static/resource/hub.html.
-#. Change to the directory containg the routing test application.
-
- ``$ cd mojito/tests/func/applications/frameworkapp/routing``
-#. Start the application specifying port 4082 in the background.
-
- ``$ mojito start 4082 &``
-#. Change to the directory containing the tests for the routing applications.
-
- ``$ cd mojito/tests/func/routing``
-#. Launch Firefox with ``arrow_selenium``.
-
- ``$ arrow_selenium --open=firefox``
-#. After Firefox has launched, run the functional routing tests with Arrow with the ``arrow`` command,
- the test descriptor, and the option ``--browser=resuse``:
-
- ``$ arrow routingtest_descriptor.json --browser=reuse``
-#. As with running the ``run.js`` script, Arrow will generate reports containing
- the results of the tests, but the report names will match the name of the
- test descriptor and be located in the current working directory. Consequently,
- you should see the test reports ``routingtest_descriptor-report.json`` and
- ``routingtest_descriptor-report.xml``.
-
.. _YUI Test: http://yuilibrary.com/yuitest/

0 comments on commit 24ac218

Please sign in to comment.