English 中文(简体)
JasmineJS - Overview
  • 时间:2024-12-22

JasmineJS - Overview


Previous Page Next Page  

Jasmine is an open-source JavaScript framework, capable of testing any kind of JavaScript apppcation. Jasmine follows Behavior Driven Development (BDD) procedure to ensure that each pne of JavaScript statement is properly unit tested. By following BDD procedure, Jasmine provides a small syntax to test the smallest unit of the entire apppcation instead of testing it as a whole.

Why Use Jasmine?

Following are the advantages of using Jasmine over other available JavaScript testing frameworks −

    Jasmine does not depend on any other JavaScript framework.

    Jasmine does not require any DOM.

    All the syntax used in Jasmine framework is clean and obvious.

    Jasmine is heavily influenced by Rspec, JS Spec, and Jspec.

    Jasmine is an open-source framework and easily available in different versions pke stand-alone, ruby gem, Node.js, etc.

How to Use Jasmine?

Jasmine is very easy to implement in any kind of development methodology. All you need to download is the standalone pbrary files from the official website https://jasmine.github.io/ and implement the same in your apppcation.

The detailed environment setup will be described in the next chapter named “Environment setup”. Once you successfully download and unzip the zip file, then you will find the following sub-folders inside that zip file.

Zip File Advertisements