{"id":23461023,"url":"https://github.com/hgschandeepa/flutter-unit-testing","last_synced_at":"2026-05-03T13:40:35.446Z","repository":{"id":267974021,"uuid":"891632698","full_name":"HGSChandeepa/Flutter-Unit-Testing","owner":"HGSChandeepa","description":"This repository is designed to help developers understand and implement unit testing in Flutter applications. It also covers API testing and Firebase functional testing to ensure robust and reliable Flutter apps.","archived":false,"fork":false,"pushed_at":"2024-12-14T12:35:01.000Z","size":292,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T21:24:15.879Z","etag":null,"topics":["firestore","flutter","http","mock","mokito","sharedpreferences","testing"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HGSChandeepa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-20T17:14:58.000Z","updated_at":"2024-12-17T18:36:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d7ebc3f-c59e-48f6-9440-12dfb2892e1c","html_url":"https://github.com/HGSChandeepa/Flutter-Unit-Testing","commit_stats":null,"previous_names":["hgschandeepa/flutter-unit-testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HGSChandeepa/Flutter-Unit-Testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGSChandeepa%2FFlutter-Unit-Testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGSChandeepa%2FFlutter-Unit-Testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGSChandeepa%2FFlutter-Unit-Testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGSChandeepa%2FFlutter-Unit-Testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HGSChandeepa","download_url":"https://codeload.github.com/HGSChandeepa/Flutter-Unit-Testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGSChandeepa%2FFlutter-Unit-Testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32571456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firestore","flutter","http","mock","mokito","sharedpreferences","testing"],"created_at":"2024-12-24T07:28:31.205Z","updated_at":"2026-05-03T13:40:35.418Z","avatar_url":"https://github.com/HGSChandeepa.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Unit Testing Guide\n\nWelcome to the **Flutter Unit Testing Guide** repository! 🚀  \n\nThis repository is designed to help developers understand and implement **unit testing** in Flutter applications. It also covers **API testing** and **Firebase functional testing** to ensure robust and reliable Flutter apps.\n\n## 📚 Topics Covered\n\n1. **Unit Testing Basics**  \n   - What is unit testing?  \n   - Writing your first unit test in Flutter.  \n   - Testing common scenarios with Flutter's `test` package.\n\n2. **API Testing**  \n   - Mocking API responses.  \n   - Verifying API call behavior.  \n   - Using packages like `mokito` for efficient testing.\n\n3. **Firebase Functional Testing**  \n   - Testing Firebase interactions (e.g., Firestore, Authentication).  \n   - Setting up Firebase emulators for local testing.  \n   - Writing tests for Firebase cloud functions.\n\n---\n\n## 🛠️ Tools and Packages Used\n\n- [flutter_test](https://pub.dev/packages/flutter_test): Official Flutter testing library.  \n- [mockito](https://pub.dev/packages/mockito): For mocking objects and dependencies.  \n- [http_mock_adapter](https://pub.dev/packages/http_mock_adapter): Mocking HTTP calls.  \n- [firebase_emulator_suite](https://firebase.google.com/docs/emulator-suite): For Firebase functional testing.\n\n---\n\n## 💻 How to Run Tests\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/your-username/Flutter-Unit-Testing.git\n   cd Flutter-Unit-Testing\n   ```\n2. Install dependencies:\n   ```bash\n   flutter pub get\n   ```\n3. Run the tests:\n   ```bash\n   flutter test\n   ```\n\n---\n\n## 🧑‍💻 Contributing\n\nContributions are welcome! If you have suggestions or additional testing examples, feel free to open a PR or add them in the issues section.\n\n---\n\n## 📜 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgschandeepa%2Fflutter-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhgschandeepa%2Fflutter-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgschandeepa%2Fflutter-unit-testing/lists"}