Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041066
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformtrivialhave not tried2019-06-10 18:452019-06-17 08:31
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version3.0PR19Q3
StatusclosedFix in branchFixed in SCM revision740abf8aad8f
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0041066: Speedup RuntimeModelTest junit by running setup code only once

DescriptionThis 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_
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 (manager)
2019-06-17 08:31

reviewed

- Issue History
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 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
Powered by Mantis Bugtracker