Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035166 | Openbravo ERP | A. Platform | public | 2017-02-06 11:41 | 2017-03-15 20:19 |
|
Reporter | shuehner | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | caristu |
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 | 0035166: Allow junit testclasses and test-method to be selectively skipped (when running tests against i.e. addon modules) |
Description | Many junit tests in pi directly or indirectly depend on either unmodified AD data from pi or data in i.e. F&B sample data.
This makes those test fail when running i.e. ant run.all.tests against a set of addon modules (i.e. in a customer project).
It would be useful to be able to blacklist those selectively on granularity:
a.) Whole testclass
b.) Test method
For example the datasourceWithNoManualWhereParameter test here shows both problem in combination.
It's last assert in the 'has implicit filter' codepath needs both
- F&B sampledata ad_user row present
- Not have hqlfilterclause (definition of implicit filter) removed.
As it tests that a specific row is not visible with the implicit filter applied, but visible with it applied. |
Steps To Reproduce | https://ci.openbravo.com/job/mod-simple/10094/testReport/junit/org.openbravo.test.datasource/DataSourceWhereParameter/datasourceWithNoManualWhereParameter_User_datasource_/ [^] |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0035117 | | closed | alostale | unstable DataSourceWhereParameter tests | related to | feature request | 0048499 | | closed | ablasco | allow to disable junit tests by package |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-02-06 11:41 | shuehner | New Issue | |
2017-02-06 11:41 | shuehner | Assigned To | => platform |
2017-02-06 11:41 | shuehner | OBNetwork customer | => No |
2017-02-06 11:41 | shuehner | Modules | => Core |
2017-02-06 11:41 | shuehner | Triggers an Emergency Pack | => No |
2017-02-06 11:41 | shuehner | Relationship added | related to 0035117 |
2017-02-06 12:35 | alostale | Assigned To | platform => alostale |
2017-02-06 12:36 | alostale | Review Assigned To | => caristu |
2017-02-06 12:36 | hgbot | Checkin | |
2017-02-06 12:36 | hgbot | Note Added: 0094075 | |
2017-02-06 12:36 | hgbot | Status | new => resolved |
2017-02-06 12:36 | hgbot | Resolution | open => fixed |
2017-02-06 12:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/87f935ef1ddeb00025c69b0796c32efd891b1027 [^] |
2017-02-06 12:38 | alostale | Note Added: 0094076 | |
2017-02-06 13:27 | hgbot | Checkin | |
2017-02-06 13:27 | hgbot | Note Added: 0094082 | |
2017-02-10 11:03 | caristu | Note Added: 0094215 | |
2017-02-10 11:03 | caristu | Status | resolved => closed |
2017-02-10 11:03 | caristu | Fixed in Version | => 3.0PR17Q2 |
2017-02-10 11:04 | caristu | Note Edited: 0094215 | bug_revision_view_page.php?bugnote_id=0094215#r14551 |
2017-03-15 20:19 | hudsonbot | Checkin | |
2017-03-15 20:19 | hudsonbot | Note Added: 0095160 | |
2017-03-15 20:19 | hudsonbot | Checkin | |
2017-03-15 20:19 | hudsonbot | Note Added: 0095162 | |
2022-01-28 07:27 | alostale | Relationship added | related to 0048499 |
Notes |
|
(0094075)
|
hgbot
|
2017-02-06 12:36
|
|
Repository: erp/devel/pi
Changeset: 87f935ef1ddeb00025c69b0796c32efd891b1027
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Feb 06 12:35:12 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/87f935ef1ddeb00025c69b0796c32efd891b1027 [^]
fixed issue 35166: test cases can be disabled by configuration
Now it's possible to define a list of test cases to be skipped. This is done
by creating a file named disabled-test in config directory, this file can contain
a list of either fully qualified class names to be completelly skipped and/or
fully qualified class names followed by "." method name to skip individual test
cases.
---
M src-test/src/org/openbravo/test/base/OBBaseTest.java
---
|
|
|
|
|
|
(0094082)
|
hgbot
|
2017-02-06 13:27
|
|
|
|
(0094215)
|
caristu
|
2017-02-10 11:03
(edited on: 2017-02-10 11:04) |
|
Code reviewed + tested OK:
- It is possible to skip all the tests of a class which extends OBBaseTest
- It is possible to skip a particular test of a class which extends OBBaseTest
|
|
|
|
|
|
|
|