You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2018/10/10 18:26:22 UTC

[trafficcontrol] 24/39: Finished test case and example fixups

This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit e91962f80c8ce55ccba10d5d1a52a7c45432ebe0
Author: ocket8888 <oc...@gmail.com>
AuthorDate: Thu Sep 27 07:13:56 2018 -0600

    Finished test case and example fixups
---
 docs/source/development/traffic_ops.rst | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/docs/source/development/traffic_ops.rst b/docs/source/development/traffic_ops.rst
index 117c14c..4e59046 100644
--- a/docs/source/development/traffic_ops.rst
+++ b/docs/source/development/traffic_ops.rst
@@ -275,18 +275,26 @@ To install the Traffic Ops Developer environment:
 
 Test Cases
 ==========
-Use prove to execute test cases. Execute after a carton install:
+Use `prove <http://perldoc.perl.org/prove.html>`_ (should be installed with Perl) to execute test cases. Execute after a ``carton install`` of all required dependencies:
 
-- To run the Unit Tests: ``$ local/bin/prove -qrp  t/``
-- To run the Integration Tests: ``$ local/bin/prove -qrp t_integration/``
+- To run the Unit Tests: ``prove -qrp  app/t/``
+- To run the Integration Tests: ``prove -qrp app/t_integration/``
 
 The KableTown CDN example
 -------------------------
 The integration tests will load an example CDN with most of the features of Traffic Control being used. This is mostly for testing purposes, but can also be used as an example of how to configure certain features. To load the KableTown CDN example and access it:
 
-#. Run the integration tests
-#. Start morbo against the integration database: ``export MOJO_MODE=integration; ./bin/start.pl``
-#. Using a browser, navigate to the given address: ``http://127.0.0.1:3000``
+#. Be sure the integration tests have been run
+#. Start the Traffic Ops server. The ``MOJO_MODE`` environment variable should be set to the name of the environment that has been loaded.
+
+	.. code-block::bash
+		:caption: Example Startup
+
+		export MOJO_MODE=integration
+		cd app/
+		bin/start.pl
+
+#. Using a web browser, navigate to the address Traffic Ops is serving, e.g. ``http://127.0.0.1:3000`` for default settings
 #. For the initial log in:
 
 	:User name: ``admin``