Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044768Openbravo ERPY. DBSourceManagerpublic2020-08-07 07:062020-08-07 11:17
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
 
Core
No
0044768: cannot compile DBSM tests from cli
DBSM tests cannot be compiled from command line.
In dbsm:

1. ensure test compilation is needed (rm -r ./src-test/build)
2. try to execute tests: ant run.tests
  ERROR:
ant run.tests   master
Buildfile: /home/alostale/ws/base/dbsm/DBSourceManagerModularity/build.xml

init:

compile:

run.tests:

compile.tests:
    [javac] Compiling 60 source files to /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/build
    [javac] Processing annotations
    [javac] Annotations processed
    [javac] Processing annotations
    [javac] No elements to process
    [javac] /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/src/org/openbravo/dbsm/test/configscript/ConfigScriptColumnSizeChange.java:32: error: package org.openbravo.test.base does not exist
    [javac] import org.openbravo.test.base.Issue;
    [javac] ^
    [javac] /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/src/org/openbravo/dbsm/test/model/Sequences.java:31: error: package org.openbravo.test.base does not exist
    [javac] import org.openbravo.test.base.Issue;
    [javac] ^
    [javac] /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/src/org/openbravo/dbsm/test/configscript/ConfigScriptColumnSizeChange.java:84: error: cannot find symbol
    [javac] @Issue("36902")
    [javac] ^
    [javac] symbol: class Issue
    [javac] location: class ConfigScriptColumnSizeChange
    [javac] /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/src/org/openbravo/dbsm/test/configscript/ConfigScriptColumnSizeChange.java:98: error: cannot find symbol
    [javac] @Issue("44069")
    [javac] ^
    [javac] symbol: class Issue
    [javac] location: class ConfigScriptColumnSizeChange
    [javac] /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/src/org/openbravo/dbsm/test/model/Sequences.java:92: error: cannot find symbol
    [javac] @Issue("42908")
    [javac] ^
    [javac] symbol: class Issue
    [javac] location: class Sequences
    [javac] /home/alostale/ws/base/dbsm/DBSourceManagerModularity/src-test/src/org/openbravo/dbsm/test/model/Sequences.java:101: error: cannot find symbol
    [javac] @Issue("42908")
    [javac] ^
    [javac] symbol: class Issue
    [javac] location: class Sequences
    [javac] 6 errors

BUILD FAILED
No tags attached.
caused by feature request 0041777 closed alostale add an annotation to link test cases with issues 
Issue History
2020-08-07 07:06alostaleNew Issue
2020-08-07 07:06alostaleAssigned To => platform
2020-08-07 07:06alostaleModules => Core
2020-08-07 07:06alostaleTriggers an Emergency Pack => No
2020-08-07 07:06alostaleAssigned Toplatform => alostale
2020-08-07 07:06alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=21455#r21455
2020-08-07 07:10alostaleRelationship addedcaused by 0041777
2020-08-07 07:14hgbotNote Added: 0121887
2020-08-07 11:17hgbotResolutionopen => fixed
2020-08-07 11:17hgbotStatusnew => closed
2020-08-07 11:17hgbotNote Added: 0121912
2020-08-07 11:17hgbotNote Added: 0121913

Notes
(0121887)
hgbot   
2020-08-07 07:14   
Merge Request created: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/12 [^]
(0121912)
hgbot   
2020-08-07 11:17   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/dbsm [^]
Changeset: f84dc5b019227b2335ea69ccb06006d2320bf61c
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 2020-08-07T07:11:58+02:00
URL: https://gitlab.com/openbravo/product/dbsm/-/commit/f84dc5b019227b2335ea69ccb06006d2320bf61c [^]

fixed BUG-44768: can't compile tests from cli

It failed to compile because DBSM tests are making use of classes
defined in base openbravo src-test.

Added them to the test classpath to solve the problem.

---
M src-test/build.xml
---
(0121913)
hgbot   
2020-08-07 11:17   
Merge request merged: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/12 [^]