官术网_书友最值得收藏!

Chapter 3. Testing Tools

There are so many tools and frameworks available in the market to perform unit testing for any logical JavaScript code. It's necessary that we understand the way these tools work, since it's important to identify a good fit for a project. Though it's not possible to explain all the tools in one chapter or a book, yet some popular tools are included in this chapter. We can write tests with the usage of some test framework and just run them in the browser, on some static page. But for automation, when we use Jenkins (or other tools for continuous integration), we need some tool that can run our tests automatically such as Karma, PhantomJS, and many more. Each of these tools are explained in three subtopics like setup, writing tests, and running tests.

We will be covering the following testing frameworks and tools in this chapter:

  • JsUnit
  • QUnit
  • Karma with Jasmine
  • DalekJS
主站蜘蛛池模板: 安丘市| 水城县| 天门市| 彝良县| 策勒县| 宝坻区| 广东省| 利津县| 北安市| 宝兴县| 乌鲁木齐县| 凤城市| 阿拉善盟| 聂拉木县| 浦江县| 耿马| 桓台县| 斗六市| 平潭县| 阳春市| 马山县| 彩票| 荆门市| 定西市| 潍坊市| 浠水县| 潞西市| 横山县| 阿合奇县| 曲麻莱县| 安徽省| 滕州市| 芜湖市| 石嘴山市| 筠连县| 佛冈县| 浮山县| 宜兰市| 石泉县| 莱芜市| 邮箱|