Commit Graph

10 Commits

Author SHA1 Message Date
Chris Yeoh 22d0561e72 Add suggestion to dev docs for debugging odd test failures
Adds information about the -r flag for tox to refresh the venv when
running unitests as when this happens the failures can look odd or valid
failures can be missing when running on a local system but occur when running
in the gate.

Change-Id: Ie6f7f73dfdbd4e55e8ac0b8a66cf9661f5630a09
2015-02-05 10:02:29 +10:30
Matthew Gilliard 8654f948da Doc: minor fixes to unit testing devref
The unit testing devref had a bit of inconsistent formatting, and a reference
to HACKING.rst which could have been linkifed.  This patch fixes both of those,
and additionally the examples have been updated to reflect the recent split
into functional and unit tests.

Change-Id: I15129808d0d1271c1223e7ab8d8532f8cb2f7293
2014-12-09 12:04:37 +00:00
Joe Gordon 053b3ab611 Drop python26 support for Kilo nova
Now that we have stopped running python26 jobs in the gate, remove
python26 from the list of jobs in tox

project-config patch: Ib495467e00e4b6abf2b3c2b9445b51652ba25167

Change-Id: I18262e91c9f5fc2381c6f5b37eb45b5f27aa81db
2014-10-27 10:17:06 -07:00
Joe Gordon 3a2e65c4bf Shrink devref.unit_tests, since info is in wiki.
Don't keep a copy of the run_tests.sh flag list here since it
inevitably will get out of sync with the real list.

No need to go into detail on how unit testing is set up, since we already have a wiki
on how to run tests that applies for all OpenStack projects. Keep
section with tox examples since that is the most commonly used command.

Change-Id: Ia8eb059be164d9df3edfd69aedcebfd028da45ff
Related-Bug: 1219040
2014-05-04 20:14:38 -07:00
Mike Spreitzer f2e06994a5 Noted that tox is the preferred unit tester.
This bug and fix is not about deleting run_tests.sh.
The change to delete run_tests.sh has been abandoned.
Thus the documentation of run_tests.sh remains.

Change-Id: Ia0a883260affc56c148dbebc5e3a49acb36b067e
Closes-Bug: #1282393
2014-03-08 02:47:38 -05:00
pmoosh 73b82dda9d Updates the documentation for nova unit tests
unit_tests.rst is outdated and does not reflect the recent changes
in the run_tests.sh script. Fix required an update of the usage
output of run_tests.sh as well as changes to some references.
Nova now uses testrepository and flake8.

There were also changes to the examples shown in the section
"Running a subset of tests". All the updated examples were tested.

Removes white spaces at the of end 3 lines.

Change-Id: I3fa040d5682ad94d861cef2a64b19b4da947318b
Closes-Bug: #1219040
2013-10-25 11:45:04 -07:00
Joe Gordon 1d38a9241d Remove unused recreate-db options from run_test.sh
run_tests.sh had an option to delete tests.sqlite, but that file is not
used anymore so the run_test options don't do anything.

Change-Id: I1abb257579da34c9dd7698543d8297268276bbc5
2013-07-12 20:08:44 +01:00
Ruby Loo 5740920bb3 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Change-Id: I68ece8406fb1d4e082a42db8e76e17b1aaa7e775
Fixes: bug #1179008
2013-05-22 20:12:08 +00:00
Duncan McGreggor 5f72723b41 Add missing documentation for shared folder issue with unit tests and Python
lock file.

Addresses documentation need raised in bug 897155

Change-Id: Idc95c12f939948bbbefd84a79b3785e3c2fd752c
2011-12-05 09:54:31 -08:00
Lorin Hochstein 40f39557b3 New docs: unit tests, Launchpad, Gerrit, Jenkins
Documented how to run unit tests

Added docs about what's on Launchpad

Added docs on Gerrit with pointers to wiki.

Added docs on Jenkins: how to access, what it does

Clarified that running unit tests doesn't mean you can fully run OpenStack.

Change-Id: I33fa9d2f271631a1a9aceaa5d4fd465198bf51d4
2011-11-26 08:48:36 -05:00