Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046181 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2021-03-30 13:21 | 2021-03-30 13:32 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR21Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
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 | approved | |||||||
Review Assigned To | ||||||||
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 | 0046181: Jest tests should not fail if no tests are found | |||||||
Description | If npm test is executed passing as parameter a path where no matching test can be found, execution will fail with an error like this: No tests found, exiting with code 1 Run with `--passWithNoTests` to exit with code 0 In /srv/ci/workspace/mod-simple-ci23.18101 12844 files checked. testMatch: **/web-test/**/?(*.)+(test).[jt]s?(x), **/web-jspack/**/?(*.)+(test).[jt]s?(x) - 209 matches testPathIgnorePatterns: web-jspack - 12824 matches testRegex: - 0 matches Pattern: org.openbravo.retail.trainingmode - 0 matches npm ERR! Test failed. See above for more details. | |||||||
Steps To Reproduce | In a retail environment, install the org.openbravo.retail.trainingmode and then run: npm test modules/org.openbravo.retail.trainingmode It will fail with the error mentioned in the description. | |||||||
Proposed Solution | Add the --passWithNoTests parameter to jest | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0127027) hgbot (developer) 2021-03-30 13:25 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/340 [^] |
(0127028) hgbot (developer) 2021-03-30 13:32 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: baa4b2a226bfbd2154e1e79c0821319ada628076 Author: Augusto Mauch <augusto.mauch@openbravo.com> Date: 2021-03-30T13:24:15+02:00 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/baa4b2a226bfbd2154e1e79c0821319ada628076 [^] Fixes ISSUE-46181: Jest should not fail if no tests are found --- M modules/org.openbravo.client.kernel/test-scripts/run-tests --- |
(0127029) hgbot (developer) 2021-03-30 13:32 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/340 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2021-03-30 13:21 | AugustoMauch | New Issue | |
2021-03-30 13:21 | AugustoMauch | Assigned To | => AugustoMauch |
2021-03-30 13:21 | AugustoMauch | OBNetwork customer | => No |
2021-03-30 13:21 | AugustoMauch | Modules | => Core |
2021-03-30 13:21 | AugustoMauch | Triggers an Emergency Pack | => No |
2021-03-30 13:25 | hgbot | Merge Request Status | => open |
2021-03-30 13:25 | hgbot | Note Added: 0127027 | |
2021-03-30 13:30 | hgbot | Merge Request Status | open => approved |
2021-03-30 13:32 | hgbot | Resolution | open => fixed |
2021-03-30 13:32 | hgbot | Status | new => closed |
2021-03-30 13:32 | hgbot | Fixed in Version | => PR21Q2 |
2021-03-30 13:32 | hgbot | Note Added: 0127028 | |
2021-03-30 13:32 | hgbot | Note Added: 0127029 |
Copyright © 2000 - 2009 MantisBT Group |