Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347433 - Test optimization problematic if all tests in a class are run outside a suite
Summary: Test optimization problematic if all tests in a class are run outside a suite
Status: CLOSED WORKSFORME
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Caspar D. CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 07:22 EDT by Caspar D. CLA
Modified: 2012-10-31 14:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caspar D. CLA 2011-05-27 07:22:04 EDT
See summary.

When tests are run thus, they load the test scenario from disk. This
means the repositories collection is null; this means new repos will
get instantiated. But during teardown the repos from the previous
test method are not deactivated (if optimizing==true). These repos
are still hanging around in the VM somewhere, and are holding on to
resources such as TCP ports, file locks and what not, so that the new
repos fail to activate properly.

(When run as a suite there is no problem because the scenario isn't
loaded from disk for each test, but is the same instance for all 
tests.)
Comment 1 Eike Stepper CLA 2011-09-19 03:23:56 EDT
[09:22:13] Eike Stepper: what about this:
[09:22:28] Eike Stepper: by default the "repo optimization" is disabled
[09:22:37] Eike Stepper: the suites explicitely enable it
[09:22:56] Caspar/Jasper: that could work, yes
Comment 2 Eike Stepper CLA 2012-06-05 07:28:29 EDT
Moving all open bug reports to 4.1 because the release is very near and it's hghly unlikely that there will be spare time to address 4.0 problems.

Please make sure that your patches can be applied against the master branch and that your problem is not already fixed there!!!
Comment 3 Eike Stepper CLA 2012-08-14 22:50:24 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 4 Eike Stepper CLA 2012-10-31 14:55:15 EDT
I don't obeserve any trouble. Can I test this with a specific test class?

No activity or ping here for years. Please reopen this bug if you feel a need.