From 6fecb729f550f4f543739375df8148ab9de38668 Mon Sep 17 00:00:00 2001 From: shangxdy Date: Thu, 18 Aug 2016 21:14:39 +0800 Subject: Update the documents in Release C As a developer; I want anybody who cares of project of parser to know what new features in release C; So i update the distribution documents. JIRA:PRASER-87 Change-Id: I0537ba55fa12daa2975f1b794908bca457cfd9c2 Signed-off-by: shangxdy --- docs/userguide/testusage.rst | 54 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 6 deletions(-) (limited to 'docs/userguide/testusage.rst') diff --git a/docs/userguide/testusage.rst b/docs/userguide/testusage.rst index 9f9bdc9..35dacae 100644 --- a/docs/userguide/testusage.rst +++ b/docs/userguide/testusage.rst @@ -2,11 +2,53 @@ .. http://creativecommons.org/licenses/by/4.0 .. (c) - capabilities and usage -================================ -Describe the specific capabilities and usage for testing. +Test use tox +=========================== +1. run tox in tosca-parser sub project - --------------------------------------- -Describe with examples how to use specfic test frameworks. +.. code-block:: bash + + # change directory to tosca-parser + cd parser/tosca2heat/tosca-parser + + # run with pep8 + tox -epep8 + + # run unit test + tox -epy27 + +or + +.. code-block:: bash + + # change directory to tosca-parser + cd parser/tosca2heat/tosca-parser + + # run tox + tox + + +2. run tox in heat-translator sub project + +.. code-block:: bash + + # change directory to heat-translator + cd parser/tosca2heat/heat-translator + + # run with pep8 + tox -epep8 + + # run unit test + tox -epy27 + tox -epy34 + +or + +.. code-block:: bash + + # change directory to heat-translator + cd parser/tosca2heat/heat-translator + + # run tox + tox -- cgit 1.2.3-korg