You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement faker for generating fake data depending on the response and request models of mapped endpoints.
Currently, we need to provide different types of data, manually to test various repos, or the UIs, or domain logics.
But the most of the use of this package happens in unit tests of course for unit testing.
Idea that I am trying to suggest is to give users ability to develop the app without need of the server or without some junky test datas.
I think that this package can extend to the point where it will not only be the package for testing from unit tests, but the package that can mock whole API interface by providing necessary models and by running one or two commands user can have his/her API interface fully mocked in flutter till the day he/she decides to move on to the production, in which case he/she should be able to do it just by exchanging DioAdapters.
packages that might be necessary for that implementation might be: mason, build_runner,
Currently I don't have full ideas interface and implementation but slowly will update it.
Any ideas and suggestions are welcomed.
The text was updated successfully, but these errors were encountered:
@cyberail Hey David, thanks for raising an issue.
What do you mean by "the package that can mock whole API interface"?
If my app uses let's say local storage, do you mean to mock local storage as well?
Implement faker for generating fake data depending on the response and request models of mapped endpoints.
Currently, we need to provide different types of data, manually to test various repos, or the UIs, or domain logics.
But the most of the use of this package happens in unit tests of course for unit testing.
Idea that I am trying to suggest is to give users ability to develop the app without need of the server or without some junky test datas.
I think that this package can extend to the point where it will not only be the package for testing from unit tests, but the package that can mock whole API interface by providing necessary models and by running one or two commands user can have his/her API interface fully mocked in flutter till the day he/she decides to move on to the production, in which case he/she should be able to do it just by exchanging
DioAdapters
.packages that might be necessary for that implementation might be:
mason,
build_runner,
Currently I don't have full ideas interface and implementation but slowly will update it.
Any ideas and suggestions are welcomed.
The text was updated successfully, but these errors were encountered: