Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[POS2] POSminorhave not tried2023-11-16 13:562023-11-17 13:22
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0053962: The quality of many jest unit tests can be improved, replacing dependencies withs mocks

DescriptionWee have identified several cases where a component is very simple (i.e. CashupProcess [1]) but its test requires a lot of setup because it is using the dependencies (both direct and indirect) of the component it is testing, instead of mocking them like they should in unit tests.

[1] [^]
[2] [^]
Steps To Reproduce-
Proposed SolutionMock dependencies instead of testing the real ones
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
hgbot (developer)
2023-11-17 13:22

Merge Request created: [^]

- Issue History
Date Modified Username Field Change
2023-11-16 13:56 AugustoMauch New Issue
2023-11-16 13:56 AugustoMauch Assigned To => AugustoMauch
2023-11-16 13:56 AugustoMauch Triggers an Emergency Pack => No
2023-11-16 13:56 AugustoMauch Status new => scheduled
2023-11-17 13:22 hgbot Note Added: 0157285

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker