Mention that unit tests have dependencies in utest/README.rst.
Also move copyright/license text to the end.
@@ -5,7 +5,7 @@ Introduction
------------
Robot Framework's unit tests are implemented using Python's `unittest
-<https://docs.python.org/2/library/unittest.html>`__ module, and they
+<https://docs.python.org/library/unittest.html>`__ module, and they
all are in subdirectories of this directory. These tests are executed
automatically when all acceptance tests are executed, and how to run
unit tests manually is explained below.
@@ -16,6 +16,33 @@ better implemented as unit tests, but we want to push the framework to
its limits (and eat our own dog food). A consequence to this is that
some features are not unit tested at all.
+Running unit tests
+------------------
+
+All unit tests can be run with script ``run.py``. To get more
+information run ``python run.py --help``. It can be executed with
+Python, Jython and IronPython to verify interoperability with all supported
+interpreters.
+
+Unit test files should always start with prefix ``test_``. This is the
+mechanism the unit tests are found by the ``run.py`` script.
+
+To run only certain unit tests you need to set the Robot Framework's ``src``
+folder to ``PYTHONPATH`` and run the test like ``python path/test_xxx.py``.
+There are also some unit tests that need some other modules i.e. libraries
+used also in acceptance tests. The full list of paths needed to run all
+the unit tests can be found from the beginning of the ``run.py`` file.
+Often it is just easier to run all the unit tests.
+
+Preconditions
+-------------
+
+Depending on the platform, unit tests may need some external modules to be
+installed. Needed modules are is listed in the provided `<requirements.txt>`__
+file and the easiest way to install them is running::
+
+ pip install -r utest/requirements.txt
+
License and copyright
---------------------
@@ -36,20 +63,3 @@ All content in the ``utest`` directory is under the following copyright::
See the License for the specific language governing permissions and
limitations under the License.
-Running unit tests
-------------------
-
-All unit tests can be run with script ``run.py``. To get more
-information run ``python run.py --help``. It can be executed with
-Python, Jython and IronPython to verify interoperability with all supported
-interpreters.
-
-Unit test files should always start with prefix ``test_``. This is the
-mechanism the unit tests are found by the ``run.py`` script.
-
-To run only certain unit tests you need to set the Robot Framework's ``src``
-folder to ``PYTHONPATH`` and run the test like ``python path/test_xxx.py``.
-There are also some unit tests that need some other modules i.e. libraries
-used also in acceptance tests. The full list of paths needed to run all
-the unit tests can be found from the beginning of the ``run.py`` file.
-Often it is just easier to run all the unit tests.
