Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345556 - Improve EMF Facet Table Tests performance
Summary: Improve EMF Facet Table Tests performance
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 05:23 EDT by Nicolas Guyomar CLA
Modified: 2020-05-01 11:27 EDT (History)
2 users (show)

See Also:
gdupe: indigo+


Attachments
Patch for Bug 345556 (14.93 KB, patch)
2011-05-13 09:06 EDT, Nicolas Guyomar CLA
no flags Details | Diff
Patch for Bug 345556 performance enhancement (19.24 KB, patch)
2011-05-16 04:15 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Guyomar CLA 2011-05-12 05:23:30 EDT
Hi,

Tests for EMF Facet Table are particularly slow because we are importing the whole test plugin for every test we perform.

We should create a new project and copy only what we need for the test in it.

Regards,
Nicolas Guyomar
Comment 1 Nicolas Guyomar CLA 2011-05-13 09:06:28 EDT
Created attachment 195588 [details]
Patch for Bug 345556

Hi,

Please find attached a patch which remove the use of PluginUtils.importPlugin() from the test in order to be replaced with a project creation, populated with the only necessary elements

This way, tests are much faster (nearly 1.5min per test before, 30sec now on my computer)

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.

Regards,
Nicolas Guyomar
Comment 2 Nicolas Guyomar CLA 2011-05-16 04:15:57 EDT
Created attachment 195694 [details]
Patch for Bug 345556 performance enhancement

Hi,

The previous patch was incomplete and moreover contained a resource with outdated uri.

I've added the Command handlers performance enhancement and fixed the uris in tableTestNatTableAPITest.table

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.

Regards,
Nicolas Guyomar
Comment 3 Gregoire Dupe CLA 2011-05-16 07:43:00 EDT
Comment on attachment 195694 [details]
Patch for Bug 345556 performance enhancement

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I’ve committed this patch except the modification of /org.eclipse.emf.facet.widgets.nattable.tests/resources/testUiResources/_test_tableEcoreTest.table because we have to check that files that can be opened with an old version can also be opened with the last version (except for files created with a version released between M1 and M6) until that the file format has been officially deprecated.

Committed revision 652.
Comment 4 Gregoire Dupe CLA 2011-05-16 07:43:48 EDT
This bug can be marked as fixed.

Regards,
Gregoire Dupe
Comment 5 Gregoire Dupe CLA 2011-06-08 10:13:24 EDT
This bug can be closed.