# Write awesome unit tests

DevFeed: [Write awesome unit tests](<https://devfeed.tech/articles/write-awesome-unit-tests-28654.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2017/02/16/unittests/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2017-02-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [business-logic](<https://devfeed.tech/tags/business-logic.md>), [cleancode](<https://devfeed.tech/tags/cleancode.md>), [production](<https://devfeed.tech/tags/production.md>), [refactor](<https://devfeed.tech/tags/refactor.md>), [regression](<https://devfeed.tech/tags/regression.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [tips](<https://devfeed.tech/tags/tips.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

## AI overview

A tutorial presents rules for writing maintainable unit tests: run them very quickly and frequently, isolate business logic from UI, database, and network tests, and keep each test small and focused on one failure cause.

## Source excerpt

If you can code, you can also write unit tests. Writing awesome tests on the other hand is a different story. Don't fool yourself: Unit testing code is production code that you will need to maintain, refactor and build upon for years to come.