Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046181
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2021-03-30 13:212021-03-30 13:32
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in VersionPR21Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046181: Jest tests should not fail if no tests are found

DescriptionIf 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 ReproduceIn 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 SolutionAdd the --passWithNoTests parameter to jest
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 [^]

- Issue History
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 Modules => Core
2021-03-30 13:21 AugustoMauch Triggers an Emergency Pack => No
2021-03-30 13:25 hgbot Note Added: 0127027
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
Powered by Mantis Bugtracker