Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032760Openbravo ERPA. Platformpublic2016-04-22 07:532016-05-01 20:29
alostale 
alostale 
normaltrivialhave not tried
closedfixed 
5
 
3.0PR16Q3 
inigosanchez
Core
No
0032760: add to jUnit test cases log context about when they start and complete
When jUnit test cases are executed, the information they log gets buried among other logs from other tests.

This makes very difficult to know from a log which test case produced it.
See any log of checks jobs in CI (ie. https://ci.openbravo.com/job/int-checks-pgsql/2173/consoleFull [^]).

There you can see several lines with this info:
[junit] 30269 [main] WARN org.openbravo.dal.core.OBContext - The user 100 does not have write access to its current organization repairing that

But it is not possible to know which test cases are producing them.
At least for test cases extending OBBaseTest, which is the vast majority, log when they start and the complete.
No tags attached.
Issue History
2016-04-22 07:53alostaleNew Issue
2016-04-22 07:53alostaleAssigned To => platform
2016-04-22 07:53alostaleModules => Core
2016-04-22 07:53alostaleTriggers an Emergency Pack => No
2016-04-22 07:54alostaleReview Assigned To => inigosanchez
2016-04-22 07:54alostaleStatusnew => scheduled
2016-04-22 07:54alostaleAssigned Toplatform => alostale
2016-04-22 07:56hgbotCheckin
2016-04-22 07:56hgbotNote Added: 0085858
2016-04-22 07:56hgbotStatusscheduled => resolved
2016-04-22 07:56hgbotResolutionopen => fixed
2016-04-22 07:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c8a6c060de10ad656114c83e6c63678659953724 [^]
2016-05-01 20:29inigosanchezNote Added: 0086100
2016-05-01 20:29inigosanchezStatusresolved => closed
2016-05-01 20:29inigosanchezFixed in Version => 3.0PR16Q3

Notes
(0085858)
hgbot   
2016-04-22 07:56   
Repository: erp/devel/pi
Changeset: c8a6c060de10ad656114c83e6c63678659953724
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Apr 22 07:55:38 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c8a6c060de10ad656114c83e6c63678659953724 [^]

fixed 32760: add to jUnit test cases log info about when they start/complete

  Now when test cases extending OBBaseTest are executed, a line is logged before
  they start and when they complete.

---
M src-test/src/org/openbravo/test/base/OBBaseTest.java
---
(0086100)
inigosanchez   
2016-05-01 20:29   
code reviewed and tested in pi@1db683d7fd72