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

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
主站蜘蛛池模板: 杨浦区| 东至县| 巨野县| 北海市| 宿州市| 惠来县| 峨眉山市| 江源县| 沂南县| 建始县| 田东县| 会同县| 肇东市| 宁武县| 塔城市| 工布江达县| 芜湖县| 安平县| 石阡县| 湖北省| 旬阳县| 抚州市| 温宿县| 呼伦贝尔市| 彭阳县| 马公市| 大英县| 右玉县| 新泰市| 梁山县| 阳东县| 永顺县| 池州市| 开远市| 上饶县| 运城市| 布尔津县| 涿鹿县| 那坡县| 抚顺县| 大关县|