Commit Graph

6 Commits

Author SHA1 Message Date
rabi 93746a9b28 Use stestr for unit tests
Change-Id: Ifaf3991e1c9400683e9c98185b86cb39ac3d318d
2017-12-15 12:39:37 +05:30
Pavlo Shchelokovskyy f518cfe252 Add separate requirements.txt to integration tests
and use it during tox run. This should speed up the tox venv creation
somewhat, as the new requirements is shorter, thus less packages are
installed or C extensions compiled.

Also this is the first step to ease packaging of the integration tests
as a separate tool.

Change-Id: I914eb675e7f025e03a22719d5dff8ed741fbd37d
2015-04-01 09:02:13 +00:00
Richard Lee 805a73b1e7 Restructure contrib/ directories
contrib/ directory does not follow any standards and will make it
harder to programmatically install plugins on devstack.  The current
structure can also cause namespace collisions when loading them.

This moves all plugin modules to a folder with the same name under
their directory (e.g. contrib/rackspace/rackspace), allowing
requirements, readmes, and other files to be separate from the
actual code.

This also helps to avoid namespace collisions when loading all the
plugins, since all plugins will be under their namespace in the heat
package.  Example:
  heat.engine.plugins
  heat.engine.plugins.docker
  heat.engine.plugins.marconi
  heat.engine.plugins.rackspace

Since plugin packages are now in a folder one level under contrib/,
testr.conf is also updated so that all plugins are discovered
correctly.

Co-Authored-By: Anderson Mesquita <andersonvom@gmail.com>
Related-Bug: #1271226
Change-Id: Ifc8e3ca388253be82471651737da5d399c7cfb98
2014-03-03 10:49:28 -05:00
JUN JIE NAN 58581ce92c Enabled source code coverage for contrib directory
So we can check the source code coverage status of contrib
directory. It's obvious to adjust omit and source properties in
.coveragerc. The tricky code in .testr.conf is caused by the behavior
of setuptools.

When running coverage, setuptools set environment variable PYTHON to
'coverage run --source package --parallel-mode' and call testr to run
the tests. The value specified via command line option --source will
overwrite the source value in .coveragerc. So contrib directory is
excluded from coverage run.

The change in .testr.conf removed the '--source heat' specified by
setuptools. So the source value specified in .coveragerc will be used
by coverage.

Change-Id: I92f6b058067ace3b3370a3670856ab3dc073b52f
2014-01-28 21:49:40 +08:00
JUN JIE NAN 20b854b836 Refactor heat gate testing contrib support
The existing code is running tests twice, one for heat, one for
contrib via adding two commands in tox.

This breaked tox single run. For example:

  tox -e py27 -- heat.tests.test_software_config

Except heat.tests.test_software_config is executed, all test cases in
contrib will be executed also.

The patch added contrib in discover list, which can make sure both
contrib in heat gate testing and does not break single test run.

Change-Id: I014d7b95c64287e1fd04a0ba69fce0de554a9a08
2014-01-21 16:18:01 +08:00
Clint Byrum 8b8525260d Enable running tests via testr
This also disables the functional tests from running. The code is still
left here for posterity. These are intended to be moved into tempest
test cases and thus will be removed entirely at that time.

Change-Id: I294671baead6e83a8312b41681e99d395f861209
2013-04-30 13:51:07 -07:00