---
title: "Discussion on \"Making your Code Testable and Writing Effective Unit Tests in Flutter: Generating Mocks and Dependency Injection\" | Hashnode"
description: "Discussion on \"Making your Code Testable and Writing Effective Unit Tests in Flutter: Generating Mocks and Dependency Injection\". A common question that beginners often ask when starting with Open Source is: How do I understand a very large code base? A simple answer is: Understand the existing tests and write new ones. Many organizations label writing unit tests as a \"good fir..."
url: "https://hashnode.com/posts/making-your-code-testable-and-writing-effective-unit-tests-in-flutter-generating-mocks-and-dependency-injection/6583c2902e1766f1f8435597"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Making your Code Testable and Writing Effective Unit Tests in Flutter: Generating Mocks and Dependency Injection](https://dmanika27.hashnode.dev/making-your-code-testable-and-writing-effective-unit-tests-in-flutter-generating-mocks-and-dependency-injection?utm_source=hashnode&utm_medium=feed)

A common question that beginners often ask when starting with Open Source is: How do I understand a very large code base? A simple answer is: Understand the existing tests and write new ones. Many organizations label writing unit tests as a "good fir...

Dec 21, 2023 · 12 min read · dmanika27.hashnode.dev  
Read the article

-   [#dart](https://hashnode.com/tag/dart)
-   [#flutter](https://hashnode.com/tag/flutter)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Manik Mehta](https://hashnode.com/@dmanika27)

@dmanika27 · Kurukshetra, Haryana, India

  
[View profile](https://hashnode.com/@dmanika27)

Student

I am Manik Mehta, student at Indian Institute of Technology, Guwahati, India. I am interested in learning Java and Android Development. I hope I will be able to contribute towards Coding Community through my blogs and projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
