Skip to content

feat: mock providers#1877

Merged
goncalopinto1 merged 4 commits into
developfrom
feature/mock_providers
Jul 15, 2026
Merged

feat: mock providers#1877
goncalopinto1 merged 4 commits into
developfrom
feature/mock_providers

Conversation

@simaopsbarbosa

Copy link
Copy Markdown
Collaborator

added mock providers for user schedule and exams so we can develop ui's and test certain features, even when we ourselves dont have lectures or exams. this simplifies the development process: instead of generating and hard-coding the data on the page itself, now we can simply call flutter run with certain flags to override the riverpod provider with realistic data. this adds the data in provider scope and not in page scope. this would've been useful, for example, in #1715 and is now very useful in #1810, both for developers and reviewers.

also makes it very simple to edit and test out different edge cases in schedule / exam related features

mock schedule

flutter run --dart-define=MOCK_SCHEDULE=true

mock exams

flutter run --dart-define=MOCK_EXAMS=true

mock both

flutter run --dart-define=MOCK_SCHEDULE=true --dart-define=MOCK_EXAMS=true

@simaopsbarbosa
simaopsbarbosa requested a review from a team June 26, 2026 16:17
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 6%. Comparing base (012b906) to head (717ecf3).
⚠️ Report is 10 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #1877   +/-   ##
=======================================
  Coverage        6%      6%           
=======================================
  Files           38      38           
  Lines         2148    2148           
=======================================
  Hits           125     125           
  Misses        2023    2023           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@goncalopinto1 goncalopinto1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AMAZING FEATURE 🤩

@simaopsbarbosa
simaopsbarbosa requested a review from a team July 1, 2026 17:29

@pedroafmonteiro pedroafmonteiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, looks awesome! LGTM 🚀
Would be good to update our wiki with this information too!

@goncalopinto1
goncalopinto1 merged commit 6a61047 into develop Jul 15, 2026
4 checks passed
@goncalopinto1
goncalopinto1 deleted the feature/mock_providers branch July 15, 2026 13:32
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

Successfully merging this pull request may close these issues.

3 participants