Calculator - Caster.IO project to showcase testing techniques
NOTE: There are some tips in the PR's descriptions, so take a look there!
Lesson 1: What is the difference between unit testing, widget testing, and integration testing? ๐๐พ PR ๐๐พ Branch
Lesson 2: Writing your first unit test ๐๐พ PR ๐๐พ Branch
Lesson 3: Running your tests from the terminal ๐๐พ PR ๐๐พ Branch
Lesson 4: The structure of a good test ๐๐พ PR ๐๐พ Branch
Lesson 5: Using expect() in your tests ๐๐พ PR ๐๐พ Branch
Lesson 6: All you need to know about Matchers ๐๐พ PR ๐๐พ Branch
Lesson 7: Grouping your tests using the group() function ๐๐พ PR ๐๐พ Branch
Lesson 8: Testing code that throws an Error or an Exception ๐๐พ PR ๐๐พ Branch
Lesson 9: Sharing code between tests with setUp() and tearDown() ๐๐พ PR ๐๐พ Branch
Lesson 10: Testing Futures ๐๐พ PR ๐๐พ Branch
Lesson 11: Testing Streams ๐๐พ PR ๐๐พ Branch
Lesson 12: Writing your first widget test ๐๐พ PR ๐๐พ Branch
Lesson 13: The difference between pumpWidget(), pump() and pumpAndSettle() ๐๐พ PR ๐๐พ Branch
Lesson 14: Finding a widget in your widget tree using CommonFinders ๐๐พ PR ๐๐พ Branch
Lesson 15: Interacting with your widgets using WidgetTester ๐๐พ PR ๐๐พ Branch
Lesson 16: Verifying your widget tests using a Matcher from flutter_test ๐๐พ PR ๐๐พ Branch
Lesson 17: Testing smaller widgets in isolation ๐๐พ PR ๐๐พ Branch
Lesson 18: Controlling the behavior of your dependencies using mockito ๐๐พ PR ๐๐พ Branch
Lesson 19: Stubbing synchronous methods with mock ๐๐พ PR ๐๐พ Branch
Lesson 20: Stubbing asynchronous methods using mockito ๐๐พ PR ๐๐พ Branch
Lesson 21: Verifying interactions with mockito ๐๐พ PR ๐๐พ Branch
Lesson 22: Using golden files to verify pixel-perfect widgets ๐๐พ PR ๐๐พ Branch
Lesson 23: Collecting code coverage from your tests ๐๐พ PR ๐๐พ Branch
Lesson 24: Running integration tests with flutter_driver ๐๐พ PR ๐๐พ Branch
Lesson 25: Taking automated screenshots of your application ๐๐พ PR ๐๐พ Branch
Lesson 26: Running your tests on Github Actions ๐๐พ PR ๐๐พ Branch
Lesson 27: Using Codemagic for your CI/CD needs ๐๐พ PR ๐๐พ Branch
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.