Giter VIP home page Giter VIP logo

taskapp's Introduction

TaskApp

“Unit testing” is writing many small tests that each test one very simple function or object behavior. TDD is a thinking process that results in unit tests, and “thinking in tests” tends to result in more fine-grained and comprehensive testing, and an easier-to-extend software design.Please keep the questions coming! It’s a great way to keep this newsletter timely and helpful.

Test Drival Development

TDD is not a technology, it is an approach. That will guide you to write more cleaner and understandable codes.

tdd-red-green-refactoring

In TDD,

  1. First of all, we need to understand what are the user requirements clearly.
  2. Then we write a test to fail. It's indicated as RED status.
  3. One test case is failed. We write codes to pass that test case it's indicated as GREEN.
  4. Then we can refactor that written code. You can follow SOLID principles in this step.
  5. And again run that test case and verify that refactored code against the test case.

Advantages of TDD

  1. The intention of your code is clear, It means you have understood the requirements as well.
  2. Iterative development and testing.
  3. Catching defects early.
  4. You are forces to write test cases.
  5. Documentation.
  6. Defects can catch very easily even it occurred in the production.

taskapp's People

Contributors

angajasinghe avatar

Stargazers

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