Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0041066 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | trivial | have not tried | 2019-06-10 18:45 | 2019-06-17 08:31 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | shuehner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR19Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 740abf8aad8f | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0041066: Speedup RuntimeModelTest junit by running setup code only once | |||||||
Description | This testclass uses @Before to read all tables from the model. @Before is run before each test causing total runtime to be around 10seconds. As this initialization is only needed once change it to be @BeforeClass to run once only. Note: That requires the method to be changes to be static This reduces runtime for the test-class to be less than a second. | |||||||
Steps To Reproduce | _ | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0112558) hgbot (developer) 2019-06-10 18:49 |
Repository: erp/devel/pi Changeset: 740abf8aad8ff240967e0702dbd4b8450cdd6b40 Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Mon Jun 10 18:48:59 2019 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/740abf8aad8ff240967e0702dbd4b8450cdd6b40 [^] Fixes 41066. Run setup code only once instead before each test. Using @BeforeClass runs the setup once only once reducing time for this test-class by around 9seconds. --- M src-test/src/org/openbravo/test/model/RuntimeModelTest.java --- |
(0112800) alostale (viewer) 2019-06-17 08:31 |
reviewed |
![]() |
|||
Date Modified | Username | Field | Change |
2019-06-10 18:45 | shuehner | New Issue | |
2019-06-10 18:45 | shuehner | Assigned To | => shuehner |
2019-06-10 18:45 | shuehner | OBNetwork customer | => No |
2019-06-10 18:45 | shuehner | Modules | => Core |
2019-06-10 18:45 | shuehner | Triggers an Emergency Pack | => No |
2019-06-10 18:49 | hgbot | Checkin | |
2019-06-10 18:49 | hgbot | Note Added: 0112558 | |
2019-06-10 18:49 | hgbot | Status | new => resolved |
2019-06-10 18:49 | hgbot | Resolution | open => fixed |
2019-06-10 18:49 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/740abf8aad8ff240967e0702dbd4b8450cdd6b40 [^] |
2019-06-10 18:49 | shuehner | Review Assigned To | => alostale |
2019-06-17 08:31 | alostale | Note Added: 0112800 | |
2019-06-17 08:31 | alostale | Status | resolved => closed |
2019-06-17 08:31 | alostale | Fixed in Version | => 3.0PR19Q3 |
Copyright © 2000 - 2009 MantisBT Group |