Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Examples #12

Open
michaelbart opened this issue Jun 18, 2024 · 3 comments
Open

Test Examples #12

michaelbart opened this issue Jun 18, 2024 · 3 comments

Comments

@michaelbart
Copy link

Love the example you have presented here, it's a very valuable resource for me as this is my first time working with riverpod. I was wondering if you plan on adding some example tests; would be interested in seeing how that's structured and what it looks like to have a mock repo/api client.

Thanks for taking the time to build this repo out!

@lucavenir
Copy link
Owner

Hi! Sure (: It's been in the roadmap since a while.
Unluckily I've got little time...

I also plan to further simplify the whole architecture.
Simple is good, especially if working with Riverpod.

@michaelbart
Copy link
Author

In what ways are you thinking about simplifying it?

@lucavenir
Copy link
Owner

Given a feature, one could simplify its file system structure like so:

  • controllers
  • providers
  • repositories
  • models
  • etc.

So that we don't need the tedious data / presentation / domain subfoldering, which make no sense imho.

Also, anything related to the data layer deserves an ad-hoc folder, away from lib. This enables extracting the data layer even to another package, if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants