summaryrefslogtreecommitdiff
path: root/.unittests
Commit message (Collapse)AuthorAgeFilesLines
* Switch to pytestTim Burke2022-12-091-1/+1
| | | | | | | | | | nose has not seen active development for many years now. With py310, we can no longer use it due to import errors. Also update lower contraints Closes-Bug: #1993531 Change-Id: I215ba0d4654c9c637c3b97953d8659ac80892db8
* tests: Stop invoking python just to get the real source directoryTim Burke2019-10-151-10/+2
| | | | | | | While we're at it, stop checking for a seven-year-old version of nose -- we already list a newer version in test-requirements.txt anyway. Change-Id: I97beace3094f11286730b99653dc1e8f699c5aec
* Get functional/tests.py running under py3Tim Burke2019-05-081-1/+1
| | | | | | | Note that you need a pretty recent eventlet to pick up https://github.com/eventlet/eventlet/commit/f0bc79e Change-Id: I6b006b972e7431c406039f4e0f6890a8f74a4432
* Fix coverage report for newer versions of coverageChuck Thier2014-04-241-1/+1
| | | | | | | | With newer versions of coverage (at least what is installed with ubuntu trusty), code coverage isn't working. Making this change allows the coverage library to find the swift package. Change-Id: I3b3792622904a86096064c0e03c8095636f83973
* make test tooling less opinionatedClay Gerrard2013-12-061-1/+1
| | | | Change-Id: I709afcec998795794a9ef13bbe7493ddd46c59b5
* Add HTML reporting for test branch coverage.Darrell Bishop2013-11-271-2/+6
| | | | | | | | When including branch coverage results, also generate HTML reports into a "cover" subdirectory under the directory in which .unittests resides (i.e. known location at the top of the swift tree). Change-Id: I493d74f38755f7bf0d7043052585efb27840b238
* Add branch coverage reportingPeter Portante2013-06-101-1/+7
| | | | | | | | Except where the python-nose package version does not support the "--cover-branches" option. Change-Id: I9ea6452d9834b3ac414e14e628002f593dd4b8c8 Signed-off-by: Peter Portante <peter.portante@redhat.com>
* one dot, 5% increase in coverageDavid Goetz2012-12-171-2/+2
| | | | Change-Id: I1a2d603be983aa3291d22f7258437ee264e6c559
* Allow dot test runners from any dirclayg2012-12-071-2/+2
| | | | | | | | Currently the .*test files in the source tree root seem to assume you're in that directory when you run them. This change should work exactly the same except for removing that restriction. Change-Id: I9b037016490dd6d5b515cb2c3cad2f99ee40bb6d
* make test runner functions return the status of running the testsIonuț Arțăriși2012-04-181-0/+2
| | | | | | | This makes it a lot easier for CI jobs to be setup and return the true status of the testsuite. Change-Id: I0c2b0d6b17f560a889cd2f22ab98a68361f6d738
* Make tests work like they used to.gholt2012-03-131-1/+3
| | | | Change-Id: I081d853a90ad0efce5b7a20b52794ce3348a9617
* Add support for venv-based test run with tox.Maru Newby2012-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | * Adds tox config - based on the config from python-quantumclient and updated for test, pep8 and coverage execution as per nova's run_tests.sh. * Adds nosetests defaults in setup.cfg * Adds runtime dependencies in tools/pip-requires - dependencies were gathered by referencing the packages used in creation of a Swift All In One. Versions were determined by checking the swift-core/trunk ppa or, failing that, the version available in lucid. * Adds test dependencies in tools/test-requires * Updates swift/common/middleware/formpost.py for pep8 compliance * Adds instructions for executing the tests with Tox to the developer_guidelines * Adds instructions for installing openstack.nose_plugin to developer_saio * Fixes bug 909177 Change-Id: I5407924d2181e9ab335aaf76bf30c8d40deccbb4
* Allow to pass arguments to nosetest.Chmouel Boudjnah2012-02-021-1/+1
| | | | | | | | | When running .functests or .unittests allow to pass argument on the command line for nosetests. Fixes bug 925636 Change-Id: Icb07c192328528900b502fbc937b9c83f70a4b0f
* Initial commit of Swift codeChuck Thier2010-07-121-0/+4