Code Monkey home page Code Monkey logo

articles-flutter-app's Introduction

Articles App

Medium Articles

Clean Architecture in Flutter

Unit Testing with Clean Architecture in Flutter | Mockito

A new Flutter project with Clean Architecture to fetch thw New Work Time Articles, display article details, and see more about details from url.

Getting Started

Prerequisites

  • Flutter SDK
  • Android Studio or VS Code
  • Dart plugin for your IDE

Installing

  • Clone the repository git clone https://github.com/YAMMEN98/ny-times-flutter-app.git
  • Open the project in Android Studio or VS Code.
  • Run the app on an emulator or physical device.

Feature

  • Get all ny times articles.
  • Search articles.
  • Filter article by period
  • Display article details.
  • Apply Dark/Light theme.
  • Apply localization en/ar languages.
  • View Image And Zoom It.
  • Create a lane to generate apk automatically when upload code to the main branch.

Text Coverage

  • Apply Unit Testing .

Built With

Unit Test

To run test you should follow the steps:

  • run command flutter test
  • If you want to get coverage file from Unit Test run this.command flutter test --coverage

There is many tools to generate text coverage, we will use test_cov_console to generate coverage report, follow these steps to run it:

  • Run the following command to make sure all flutter library is up-to-date flutter pub get,
    • Run the following command to generate lcov.info on coverage directory flutter test --coverage,

    • Run the tool to generate report from lcov.info to the console flutter pub run test_cov_console,

    • You can follow and see more of parameters in test_cov_console.

    • You Can Output report to CSV file (-c, --csv, -o, --output) by flutter pub run test_cov_console -c --output=coverage/test_coverage.csv

    • Open CSV file by excel and you will see like this result:

      Text Coverage

Author

Yamen Abdullrahman - Senior Flutter Developer;

articles-flutter-app's People

Contributors

yammen98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.