OpenStack test classes
Go to file
Doug Hellmann 9cec897ed1 Add tool to run cross-project tests
Provide a script for the devstack-gate hook to run tests to
ensure that changes in this project do not break unit tests
in consuming projects.

See https://review.openstack.org/#/c/76381 for the script
addition in the gate configuration.

Change-Id: I08d8380183c2128c62fa0ca52306950d8076f3c2
2014-02-27 09:05:04 -08:00
doc/source Switch to oslosphinx 2014-02-18 05:28:57 -08:00
oslotest Rename oslo.test to oslotest 2014-02-18 07:17:31 -08:00
tests Rename oslo.test to oslotest 2014-02-18 07:17:31 -08:00
tools Add tool to run cross-project tests 2014-02-27 09:05:04 -08:00
.coveragerc apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
.gitignore apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
.gitreview apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
.mailmap apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
.testr.conf apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
CONTRIBUTING.rst apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
HACKING.rst apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
LICENSE apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
MANIFEST.in apply oslo-cookiecutter 2014-01-31 15:42:43 -08:00
README.rst Add tool to run cross-project tests 2014-02-27 09:05:04 -08:00
requirements-py3.txt Add test for moxstubout 2014-02-18 05:49:53 -08:00
requirements.txt Add test for moxstubout 2014-02-18 05:49:53 -08:00
setup.cfg Rename oslo.test to oslotest 2014-02-18 07:17:31 -08:00
setup.py Sync requirements and fix pep8 errors 2014-02-18 05:27:46 -08:00
test-requirements-py3.txt Add test for moxstubout 2014-02-18 05:49:53 -08:00
test-requirements.txt Switch to oslosphinx 2014-02-18 05:28:57 -08:00
tox.ini Add test for moxstubout 2014-02-18 05:49:53 -08:00

README.rst

oslotest

OpenStack test framework and test fixtures

Cross-testing With Other Projects

The oslotest package is cross-tested against its consuming projects to ensure that no changes to the library break the tests in those other projects.

In the Gate

To add your project to the list for cross-testing, update modules/openstack_project/files/jenkins_job_builder/config/projects.yaml in the openstack-infra/config git repository and add sections like:

- '{pipeline}-oslo.test-dsvm-{name}{branch-designator}':
    pipeline: check
    node: 'devstack-precise || devstack-precise-check'
    branch-designator: ''
    branch-override: default
- '{pipeline}-oslo.test-dsvm-{name}{branch-designator}':
    pipeline: gate
    node: devstack-precise
    branch-designator: ''
    branch-override: default

To the jobs list for your project. Refer to https://review.openstack.org/#/c/76381 for an example.

Locally

To run the cross-tests locally, invoke the script directly, passing the path to the other source repository and the tox environment name to use:

$ cd oslo.test
$ ./tools/run_cross_tests.sh ~/repos/openstack/oslo.config py27