| Summary: | PreferencesTests rely on test ordering | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | API Tools | Assignee: | Curtis Windatt <curtis.windatt.public> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | curtis.windatt.public, daniel_megert | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 349447 | ||||||
| Attachments: |
|
||||||
|
Description
Michael Rennie
This is even worse than originally described. Some tests, like the ApiDescriptionProcessor tests depend not only on the order of methods within the tests, but also that other test suites (ProjectCreationTests) be run first and in order. Created attachment 198501 [details]
Possible fix
This patch changes three test suites to create the necessary projects to run during the setup call (and deleting them during tear down).
Since we are creating, adding content and refactoring a project for each test, the tests run significantly slower (over a second each vs < 300 ms). There are not a lot of these tests, so the overall performance hit isn't major.
I'm running the plug-in tests some more to double check this fix. Are we targeting this for the Java7 branch?
Released the patch to the BETA_JAVA7 branch. While the test failures only occur on a 1.7 vm, this fix should be applied to HEAD if the BETA_JAVA7 branch does not get merged, as it allows the tests to run atomically. Verified that the tests can now run independently. We had to fix Bug 355152. |