Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035166 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Openbravo ERP] A. Platform | minor | have not tried | 2017-02-06 11:41 | 2017-03-15 20:19 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR17Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 87f935ef1dde | ||||
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 | 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_/ [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0094075) hgbot (developer) 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 --- |
(0094076) alostale (viewer) 2017-02-06 12:38 |
Doc: http://wiki.openbravo.com/wiki/How_to_create_JUnit_testcases#Skipping_test_cases [^] |
(0094082) hgbot (developer) 2017-02-06 13:27 |
Repository: erp/devel/pi Changeset: 3e45f4c8e290bbf52b764e558ea0461e34cd237b Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Feb 06 13:25:36 2017 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/3e45f4c8e290bbf52b764e558ea0461e34cd237b [^] related to issue 35166: don't use JDK8 api --- M src-test/src/org/openbravo/test/base/OBBaseTest.java --- |
(0094215) caristu (viewer) 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 |
(0095160) hudsonbot (viewer) 2017-03-15 20:19 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/54e102bef53e [^] Maturity status: Test |
(0095162) hudsonbot (viewer) 2017-03-15 20:19 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/54e102bef53e [^] Maturity status: Test |
![]() |
|||
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 | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |