summaryrefslogtreecommitdiff
path: root/lib/testresources/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate to pbrRobert Collins2015-12-041-805/+0
| | | | Release / build automation good.
* Make FixtureResource.reset actually call fixture.reset().Robert Collins2013-01-211-12/+64
|
* * TestResourceManager.reset() was not taking dependency dirtiness intoRobert Collins2013-01-201-1/+1
| | | | consideration. (Brian Sutherland, #783488)
* * FixtureResource was not triggering cleanups or resets between uses, this isRobert Collins2013-01-201-10/+13
| | | | | fixed (but will make OptimisingTestSuite trigger resets on every transition between tests). (Robert Collins, James Westby, #1023423)
* Release 0.2.6 and add Python3.2 compat.0.2.6Robert Collins2013-01-201-10/+24
|
* Fix several pep8 warningsFree Ekanayaka2012-08-101-39/+42
|
* fix usage of super() and get tests passingtim.cole@canonical.com2011-05-031-2/+2
|
* More clarity.Robert Collins2010-11-151-1/+5
|
* * Added ``testresources.FixtureResource`` to wrap ``fixtures.Fixture``Robert Collins2010-11-151-0/+36
| | | | instances. (Robert Collins)
* Relicenced to BSD / Apache2.0 with full agreement of contributors.Robert Collins2010-02-271-14/+12
|
* Use a travelling salesman heuristic to sort tests, accepting up to twice the ↵Robert Collins2010-02-191-37/+216
| | | | total resource setup/teardown cost for fast (N^2) sort times.
* partition tests to perform resource ordering optimisation into strongly ↵Robert Collins2010-02-161-23/+64
| | | | connected sets of tests, reducing optimisation passes to cases where some resources are actually reused.
* TestResource -> TestResourceManager.Robert Collins2010-02-121-5/+5
|
* Make public reusable functions for setting up and tearing down resources of ↵Robert Collins2010-01-111-26/+54
|\ | | | | | | a test.
| * Make public reusable functions for setting up and tearing down resources of ↵Robert Collins2010-01-081-26/+54
| | | | | | | | a test.
* | Typo.Robert Collins2010-01-071-1/+1
| |
* | Implement an adapter for existing fixtures that honour a setUp/tearDown like ↵Robert Collins2010-01-071-0/+44
|/ | | | protocol.
* Fix OptimisingTestSuite.addTest when adding other OptimisingTestSuite ↵Robert Collins2010-01-051-1/+1
| | | | instances, which fixes testresources.TestLoader not generating optimising runs.
* Handle finding a test result when surrounding frames are things like twisted ↵Robert Collins2009-08-061-1/+6
| | | | reactors with run methods.
* Really fix bug 284125 by using inspect to look up the TestResult being used ↵Robert Collins2009-07-131-32/+60
| | | | and audit activity via the result object tests are being run with.
* Merge support for trace_functions in TestResource.Robert Collins2009-07-071-1/+12
|\
| * Review feedback - make the trace happen around make and clean not just ↵Robert Collins2009-06-181-3/+5
| | | | | | | | before, and pass structed info not a formatted string.
| * Allow tracing of TestResource activity by passing a trace_function to ↵Robert Collins2009-06-171-1/+10
| | | | | | | | TestResource, fixing bug 284125.
* | Review feedback.Robert Collins2009-07-071-2/+2
| |
* | Merge and simply James Henstridge's reset patch.Robert Collins2009-06-181-4/+18
|\ \ | |/ |/|
| * Update code to reset() resources if they have been used by a test.James Henstridge2009-01-241-3/+15
| |
| * Rename _resetResource() to reset() (explicitly documenting it as James Henstridge2009-01-201-8/+18
| | | | | | | | overridable), and move the self._dirty check into the method.
* | Make TestResource.make_all and clean_all private methods.Robert Collins2009-06-171-6/+6
| |
* | A dirty or changed dependency of a resource makes the resource dirty too, ↵Robert Collins2009-06-171-1/+19
| | | | | | | | fixing bug 324202.
* | Merge bug fix for lp:271257Robert Collins2009-06-171-2/+0
|\ \
| * | Merge in James's patch and apply a fix.Jonathan Lange2008-11-021-2/+0
| | |
* | | Merge adsorbSuite->addTests rename.Robert Collins2009-06-171-18/+21
|\ \ \ | |/ / | | / | |/ |/|
| * Don't need iterate_tests any more.Jonathan Lange2008-10-041-12/+0
| |
| * testtools not pyunit3kJonathan Lange2008-10-041-1/+12
| |\
| * | Move implementation to addTest, deprecating adsorbSuite.Jonathan Lange2008-09-131-4/+9
| | |
| * | Implement in terms of base addTest.Jonathan Lange2008-09-131-2/+3
| | |
| * | Make adsorbSuite preserve some of the test suite hierarchy.Jonathan Lange2008-09-131-2/+11
| | |
* | | Make OptimisingTestSuite release resources before running non-resourced James Henstridge2008-12-051-7/+6
| | | | | | | | | | | | tests.
* | | Prevent thrashing on dependent resources.Robert Collins2008-12-051-1/+3
| | |
* | | Grouping of tests includes dependent tests.Robert Collins2008-12-051-3/+6
| | |
* | | Clean resources before their dependencies, so the dependency can be used ↵Robert Collins2008-12-051-1/+1
| | | | | | | | | | | | during cleaning.
* | | Implement non-optimising resource dependencies/cascading by extending the ↵Robert Collins2008-12-051-6/+52
| | | | | | | | | | | | TestResource interface.
* | | Use _getGraph() to calculate the resource switching costs again. This James Henstridge2008-12-031-25/+16
| | | | | | | | | | | | prevents duplicate calculation in sortTests().
* | | Put the test splitting code into split_by_resources(), and update the James Henstridge2008-12-031-21/+15
| | | | | | | | | | | | tests for that code to match the new behaviour.
* | | Rather than sorting the entire list of tests, sort groups of tests that James Henstridge2008-12-021-25/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | share the same set of resources. There are usually relatively few such combinations in a test suite compared to the number of tests and there can never be more. Within a group of tests with the same resource requirements, the tests maintain their relative order from before sorting.
* | | Really stomp on sort optimisation ordering. Will be slow with huge test ↵Robert Collins2008-12-021-14/+29
| | | | | | | | | | | | numbers as no grouping is done.
* | | Merge James' cleaner approach.Robert Collins2008-12-021-16/+12
|\ \ \
| * | | Change the sortTests() algorithm to simply walk the graph of tests, James Henstridge2008-12-021-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | moving to the unvisited test with the least cost edge in the graph. Not necessarily the smartest algorithm, but should do the trick. From what I can see, the direct edge should always be a least cost path between two nodes: you'll need to pay the resource set up and tear down costs for the unused resources. So Dijkstra seems unneeded.
| * | | Fix OptimisingTestSuite._getGraph() to handle resources correctly.James Henstridge2008-12-021-4/+5
| | | |
* | | | Ditch Dijkstra for salesman, TINFLRobert Collins2008-12-021-17/+15
| | | |