Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0045320Openbravo ERPZ. Otherspublic2020-10-28 16:042022-02-01 07:24
shuehner 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
Core
No
0045320: junit test HiddenUpdateTest is quite slow and should be reviewed if it can be made faster
That single junit test takes around 10seconds as it is looping over every existing table and reading first 5 records (without order by) to test against bad behavior.

The test should be reviewed if it cannot be cut down to check less cases without loosing coverage.
Note: several seconds seems to be either commitAndClose or reinitialize calls happening after the entity loop.
ant run.all.tests and checkout text-output and look at timestamp of this specific junit test class

    [junit] 12:35:05.608 INFO org.openbravo.test.base.OBBaseTest - *** Starting test case: org.openbravo.test.dal.HiddenUpdateTest.testHiddenUpdates

hundreds of lines with 1 entity each

    [junit] 12:35:10.487 INFO org.openbravo.test.dal.HiddenUpdateTest - Checking entity OBKMO_WidgetClassMenu
    [junit] 12:35:13.621 INFO org.openbravo.test.base.OBBaseTest - *** Finished test case: org.openbravo.test.dal.HiddenUpdateTest.testHiddenUpdates
No tags attached.
Issue History
2020-10-28 16:04shuehnerNew Issue
2020-10-28 16:04shuehnerAssigned To => platform
2020-10-28 16:04shuehnerModules => Core
2020-10-28 16:04shuehnerTriggers an Emergency Pack => No
2022-02-01 07:24alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.