An open API service indexing awesome lists of open source software.

https://github.com/samuelematias/calculator_app

๐Ÿงช A simple Flutter app with several unit tests, widget testing, and integration tests/e2e.
https://github.com/samuelematias/calculator_app

dart e2e-testing flutter integration-testing unit-testing widget-testing

Last synced: 18 days ago
JSON representation

๐Ÿงช A simple Flutter app with several unit tests, widget testing, and integration tests/e2e.

Awesome Lists containing this project

README

          

# calculator_app

Calculator - [Caster.IO](https://caster.io) project to showcase testing techniques

> NOTE: **There are some tips in the PR's descriptions**, so take a look there!
## Class / PR / Branch

[Lesson 1: What is the difference between unit testing, widget testing, and integration testing?](https://caster.io/lessons/lesson-1-what-is-the-difference-between-unit-testing-widget-testing-and-integration-testing) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/1) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson1)

[Lesson 2: Writing your first unit test](https://caster.io/lessons/lesson-2-writing-your-first-unit-test) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/2) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson2)

[Lesson 3: Running your tests from the terminal](https://caster.io/lessons/lesson-3-running-your-tests-from-the-terminal) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/3) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson3)

[Lesson 4: The structure of a good test](https://caster.io/lessons/lesson-4-the-structure-of-a-good-test) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/4) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson4)

[Lesson 5: Using expect() in your tests](https://caster.io/lessons/lesson-5-using-expect-in-your-tests) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/5) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson5)

[Lesson 6: All you need to know about Matchers](https://caster.io/lessons/lesson-6-all-you-need-to-know-about-matchers) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/6) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson6)

[Lesson 7: Grouping your tests using the group() function](https://caster.io/lessons/lesson-7-grouping-your-tests-using-the-group-function) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/7) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson7)

[Lesson 8: Testing code that throws an Error or an Exception](https://caster.io/lessons/lesson-8-testing-code-that-throws-an-error-or-an-exception) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/8) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson8)

[Lesson 9: Sharing code between tests with setUp() and tearDown()](https://caster.io/lessons/lesson-9-sharing-code-between-tests-with-setup-and-teardown) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/9) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson9)

[Lesson 10: Testing Futures](https://caster.io/lessons/lesson-10-testing-futures) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/10) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson10)

[Lesson 11: Testing Streams](https://caster.io/lessons/lesson-11-testing-streams) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/11) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson11)

[Lesson 12: Writing your first widget test](https://caster.io/lessons/lesson-12-writing-your-first-widget-test) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/12) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson12)

[Lesson 13: The difference between pumpWidget(), pump() and pumpAndSettle()](https://caster.io/lessons/lesson-13-the-difference-between-pumpwidget-pump-and-pumpandsettle) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/13) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson13)

[Lesson 14: Finding a widget in your widget tree using CommonFinders](https://caster.io/lessons/lesson-14-finding-a-widget-in-your-widget-tree-using-commonfinders) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/14) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson14)

[Lesson 15: Interacting with your widgets using WidgetTester](https://caster.io/lessons/lesson-15-interacting-with-your-widgets-using-widgettester) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/15) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson15)

[Lesson 16: Verifying your widget tests using a Matcher from flutter_test](https://caster.io/lessons/lesson-16-verifying-your-widget-tests-using-a-matcher-from-flutter_test) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/16) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson16)

[Lesson 17: Testing smaller widgets in isolation](https://caster.io/lessons/-lesson-17-testing-smaller-widgets-in-isolation) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/17) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson17)

[Lesson 18: Controlling the behavior of your dependencies using mockito](https://caster.io/lessons/lesson-18-controlling-the-behavior-of-your-dependencies-using-mockito) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/18) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson18)

[Lesson 19: Stubbing synchronous methods with mock](https://caster.io/lessons/lesson-19-stubbing-synchronous-methods-with-mockito) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/19) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson19)

[Lesson 20: Stubbing asynchronous methods using mockito](https://caster.io/lessons/lesson-20-stubbing-asynchronous-methods-using-mockito) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/20) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson20)

[Lesson 21: Verifying interactions with mockito](https://caster.io/lessons/lesson-21-verifying-interactions-with-mockito) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/21) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson21)

[Lesson 22: Using golden files to verify pixel-perfect widgets](https://caster.io/lessons/lesson-22-using-golden-files-to-verify-pixel-perfect-widgets) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/22) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson22)

[Lesson 23: Collecting code coverage from your tests](https://caster.io/lessons/lesson-23-collecting-code-coverage-from-your-tests) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/23) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson23)

[Lesson 24: Running integration tests with flutter_driver](https://caster.io/lessons/lesson-24-running-integration-tests-with-flutter_driver) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/24) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson24)

[Lesson 25: Taking automated screenshots of your application](https://caster.io/lessons/lesson-25-taking-automated-screenshots-of-your-application) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/25) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson25)

[Lesson 26: Running your tests on Github Actions](https://caster.io/lessons/lesson-26-running-your-tests-on-github-actions) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/26) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson26)

[Lesson 27: Using Codemagic for your CI/CD needs](https://caster.io/lessons/lesson-27-using-codemagic-for-your-cicd-needs) ๐Ÿ‘‰๐Ÿพ [PR](https://github.com/samuelematias/calculator_app/pull/27) ๐Ÿ‘‰๐Ÿพ [Branch](https://github.com/samuelematias/calculator_app/tree/lesson27)

## License

```
MIT License

Copyright (c) 2020 Samuel Matias

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```