In the normal xUnit frameworks (JUnit as an example), the setup and teardown methods
are executed for each individual test method of a test class. I have verified that in
2.0.6 and 2.0.7, the setup and teardown procedures of utPLSQL are called only once
for the execution of all the test functions/procedures in a whole test package. Since
the typical use pattern is to write multiple test methods per method being tested and
to require that tests be independent of each other, utPLSQL should operate like the
other xUnit products. Otherwise, I would have to write multiple test packages, each
with only a single method for each and every function/procedure in a target package.
Part of the problem with executing the setup/teardown is that this can cause serious
dependence on the order of execution of the test functions/procedures. I would be
forced to essentially put setup/teardown code in each of my test functions/procedures
if I wanted to actually have test independence, therefore, rendering the current
setup/teardown procedures useless. This is what I'm having to do at the current time.
Logged In: YES
user_id=30290
Changed from bug to enhancement
The status of this ticket is "open-fixed". Does that mean it is fixed in CVS?
This was added in a subsequent version (note that you can use the parameter in the
test
,run
,testsuite
andrunsuite
procedures). From the release notes:Last edit: Paul Walker 2013-08-12