Community
Participate
Working Groups
R3.3. We should move the code that disables spelling for performance tests from AbstractDecoratedTextEditorPreferenceConstants into tests itself. Currently, when running the performance tests on a local machine we get different results than on the official/releng test machines.
Created attachment 180291 [details] fix The patch - removes the spell check disabling code from AbstractDecoratedTextEditorPreferenceConstants - disables spell checking for all tests in o.e.jdt.text.tests.performance package
Frederic, this change may affect some other performance tests numbers if they deal with text editors.
- DisableAutoBuildTestSetup now has side-effects - If a single test is executed then spelling would still be enabled :-( ==> Why don't you simply add it in TextPerformanceTestCase.setUp/tearDown? AFAIK most if not all text performance test cases inherit from that class.
Created attachment 180336 [details] fix (In reply to comment #3) > ==> Why don't you simply add it in TextPerformanceTestCase.setUp/tearDown? > AFAIK most if not all text performance test cases inherit from that class. I tried to enable/disable the spell check once per all tests, but as discussed I now add that to TextPerformanceTestCase.setUp/tearDown.
Patch looks good with two minor changes that I made before committing to HEAD: - TextPerformanceTestCase2: moved super.tearDown() to the end - OpenPreferencePageTest added super calls to setUp() and tearDown() Filed bug 327459 to verify the next performance results.
Verified in I20101025-1800.