Coder Social home page Coder Social logo

muzammil-git / testing_app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 614 KB

Performed unit, widget & integration testing.

Kotlin 0.32% Ruby 3.49% Swift 1.00% Objective-C 0.09% Dart 86.90% HTML 8.21%
flutter integration-testing unit-testing widget-testing

testing_app's Introduction

What I learned

  • To create widget tests using the widget testing framework
  • To create an integration test to test the app's UI and performance using the integration_test library
  • To test data classes (providers) with the help of unit tests

Widget Test Screenshots

Integration Test img_2.png

Performing Test On

  • Unit tests to validate the add and remove operations
  • Widgets tests for the Landing and favorites pages
  • UI and performance tests for the entire app using integration tests

Keynotes

  • A unit test verifies that every individual unit of software, be it a function, object or a widget, performs its intended task correctly
  • All the test files in a Flutter app, except for integration tests, are placed in the test directory. Convention of giving name to integration_test is fixed and the file is placed at apps root directory.
  • Widget Test (flutter_test) vs Integration Test (integration_test): They both render UI and test on device, but the major difference is widget test is for a particular widget it doesnt need whole app environment where as in integration test its need apps environement in my case mock goRouter, integration test covers whole app testing.

Flutter Boiler Plate

  • Scalable State Mgmt - Provider - models
  • Scalable Dialog - DialogManager
  • Scalable Navigation - routes folder
  • Singleton Internet Connectivity Checker
  • Singleton Local Storage - SharedPrefHelper
  • Scalable Validators - constants/validators
  • Set Scalable App theme

testing_app's People

Contributors

muzammil-git avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.