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

Add unit tests for FirebaseDB methods #80

Merged
merged 16 commits into from
Apr 2, 2024
Merged

Conversation

mario-bermonti
Copy link
Owner

Description

Includes new dependencies to mock Firebase and be able to run unittests and the unittests.

Related Issue

closes # 79

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🐞 Bug fix (non-breaking change that fixes an issue)
  • 🔧 Maintenance (non-breaking change that improves code)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix
  • 🔐 Improvements to the CI workflow

Checklist

mario-bermonti and others added 16 commits April 1, 2024 09:59
Add functionality for automatically converting base models to json (Map<String, dynamic>)
test(firebase): Add setup() to FirebaseDB tests

test(firebase): Init db in setup()
test(firebase): Add test for FirebaseDB.addTrial

test(firebase): Use path variable

improve name for trials collection ref

improve name of ref to query snapshot - trial

fix name trial data from firebase

Merge getting collection ref and doc

Remove print() from test
test(firebase): Add test for FirebaseDB.addTrials

test(firebase): Add test for FirebaseDB.addTrials

improve names local trials

Remove print() from tests
@mario-bermonti mario-bermonti merged commit d467ccd into main Apr 2, 2024
2 checks passed
@mario-bermonti mario-bermonti deleted the mario-bermonti/issue79 branch April 2, 2024 21:08
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.

1 participant