Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mo7amedaliEbaid committed Oct 3, 2023
1 parent 24df3a6 commit cf7ba0c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,18 @@ Code is refactored for readability and maintainability. In particular, hard-code

#### Unit Testing

<br />
How can you ensure that your app continues to work as you add more features or change existing functionality? By writing tests.
<br />

Unit tests are handy for verifying the behavior of a single function, method, or class. The test package provides the core framework for writing unit tests, and the flutter_test package provides additional utilities for testing widgets.
<br />


[Continue Reading](https://docs.flutter.dev/cookbook/testing/unit/introduction)


#### Mock dependencies using Mockito

<br />
Sometimes, unit tests might depend on classes that fetch data from live web services or databases. This is inconvenient for a few reasons:
<br />

Calling live services or databases slows down test execution.
A passing test might start failing if a web service or database returns unexpected results. This is known as a “flaky test.”
It is difficult to test all possible success and failure scenarios by using a live web service or database.
Expand Down

0 comments on commit cf7ba0c

Please sign in to comment.