Giter Site home page Giter Site logo

js-test's Introduction

TDD测试驱动开发

一个需求应该从两方面分析: 立足点和系统性思考

立足点: 用户如何使用产品
系统性思考: 举例为长度型类库
  1. 相等性 1.1 相同单位 1.2 不同单位
  2. 相加性 2.1 相同单位 2.2 不同单位
  3. 相减性 3.1 相同单位 3.2 不同单位
拆分需求的原则是:分解为大于3个小于7个互斥的原则,分解到每一个都可以独立的写出一个单元测试,下一个用例都可以覆盖前一个用例,成T型增长.
崇拜原始.
小步替代,完成红,绿,重构这样的过程.

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.