summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2005-09-04 11:09:22 +1000
committerRobert Collins <robertc@robertcollins.net>2005-09-04 11:09:22 +1000
commit18510a9e6ac61a62f7bcdee54ce498953bff47ad (patch)
tree86fd9b5da4083d3ade088a23674f8057a3f41f3e /README
parent09917c34e3d20f181876c02b6fa324c9bb329b41 (diff)
downloadtestresources-18510a9e6ac61a62f7bcdee54ce498953bff47ad.tar.gz
support nested getResource calls to do the right thing.
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 6 insertions, 5 deletions
diff --git a/README b/README
index 1a1f0cc..0eb8b53 100644
--- a/README
+++ b/README
@@ -29,10 +29,11 @@ There are three main components to make UnitResources work:
1) testresources.TestResource
A TestResource is a object that tests can use, which provide a getResource()
method that returns and object implementing whichever interface the client
- needs, and which will accept that same object back on its finished() method.
+ needs, and which will accept that same object back on its finishedWith()
+ method.
Commonly the TestResource will be a class, though that is not a requirement.
- Most importantly, two getResources with no finished call in the middle, to
- the same TestResource, should return the same object.
+ Most importantly, two getResources with no finishedWith call in the middle,
+ to the same TestResource, should return the same object.
XXX the same object requirement may not be needed - but for expensive
resources that is the optimisation goal.
The goals for TestResources that cannot finish properly are not yet clear,
@@ -42,8 +43,8 @@ There are three main components to make UnitResources work:
This TestSuite will introspect all the test cases it holds directly and
if they declare needed resources, will run the tests in an order that
attempts to minimise the number of setup and tear downs required.
- It attempts to achieve this by callling getResource() and finished() around
- the sequence of tests that use a specific resource.
+ It attempts to achieve this by callling getResource() and finishedWith()
+ around the sequence of tests that use a specific resource.
OptimisingTestSuite has a new method over normal TestSuites:
adsorbSuite(suite), which scans another test suite and incorporates all of