Git Product home page Git Product logo

feed-reader-testing_zh's Introduction

Feed-Reader-Testing_zh

FeedReader基于jasmine-2.1.2的测试程序

项目使用

  • 下载或克隆到本地
  • 用浏览器打开根目录下的index.html文件,查看FeedReader阅读器效果,底部附有jasmine测试结果(每个点或红叉代表一个测试期望,绿点代表测试通过,红叉代表测试不通过)。
  • 用编辑器打开./jasmine/spec/feedreader.js文件,可以阅读或修改测试文件的逻辑。
  • 还可以修改./js/app.js阅读器逻辑来查看测试是否还能继续通过。

项目目的

  • 学到怎么使用 Jasmine 来给已经写好的应用编写一定数量的测用例。
  • 这些测试用例既要测试深层次的商业逻辑,也要测试时间处理和 DOM 操作。

测试的重要性

  • 测试是开发过程中一个很重要的部分,很多组织把一个标准的开发过程称之为测试驱动开发。意思就是开发人员在他们开始着手编写应用代码之前先写好测试用例。当然这个时候所有的测试用例都是通不过的,然后他们就开始编写应用代码使测试全部通过。
  • 不管是在一个推崇测试驱动开发的组织,或者是一个编写测试只是为了防止未来的开发中出现与已有代码冲突的 bug 的团队工作,测试都是我们要掌握的一项重要技能。

对前端职业的帮助:

  • 编写测试需要分析应用中诸如 html , css , javascript 之类的各个层面。当你换了团队工作或者加入到一个新的公司,这项技能尤其重要(指阅读新的项目代码的能力)
  • 长期编写测试会让你拥有不需要手动编写测试去测试所有的功能就能快速分析新的代码是否和已知代码冲突的能力。

feed-reader-testing_zh's People

Contributors

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