Jump to: navigation, search

Difference between revisions of "Mistral/Testing"

(How to execute tests manually)
(How to execute tests manually)
Line 10: Line 10:
 
= How to execute tests manually =
 
= How to execute tests manually =
 
All existing automated tests can be executed manually on the developer's desktop. To do this you should clone mistral repository and perform the following shell commands:
 
All existing automated tests can be executed manually on the developer's desktop. To do this you should clone mistral repository and perform the following shell commands:
    git clone https://github.com/stackforge/mistral
+
git clone https://github.com/stackforge/mistral
    cd mistral
+
cd mistral
  
    # To run unit tests suite
+
To run unit tests suite
    tox
+
tox
  
    # To run integration test suite
+
To run integration test suite
    git clone https://github.com/openstack/tempest
+
git clone https://github.com/openstack/tempest
    TEMPEST_DIR=./tempest
+
TEMPEST_DIR=./tempest
    nosetests functionaltests/api/v1/test_mistral_basic.py
+
nosetests functionaltests/api/v1/test_mistral_basic.py

Revision as of 09:47, 17 June 2014

Different types of tests

On Mistral project we have two separate test suites:

  • Unit tests - executed by Jenkins CI job in OpenStack gerrit (python-style checks and execution of all unit tests)
  • Integration tests - executed by Devstack Gate job in OpenStack gerrit (integration tests for Mistral after the OpenStack deployment with devstack)

Where we can find automated tests

How to execute tests manually

All existing automated tests can be executed manually on the developer's desktop. To do this you should clone mistral repository and perform the following shell commands:

git clone https://github.com/stackforge/mistral
cd mistral

To run unit tests suite

tox

To run integration test suite

git clone https://github.com/openstack/tempest
TEMPEST_DIR=./tempest
nosetests functionaltests/api/v1/test_mistral_basic.py