top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Jasmine Framework?

0 votes
359 views

What is Jasmine?

Jasmine is an open source testing framework for JavaScript. It aims to run on any JavaScript-enabled platform, to not intrude on the application nor the IDE, and to have easy-to-read syntax. It is heavily influenced by other unit testing frameworks, such as ScrewUnit, JSSpec, JSpec, and RSpec.

Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.

  • 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 like stand-alone, ruby gem, Node.js, etc.​
Sample Code

describe("A suite is just a function", function() {
  var a;

  it("and so is a spec", function() {
    a = true;

    expect(a).toBe(true);
  });
});
 

Video for Jasmine Framework

posted Aug 1, 2017 by Manish Tiwari

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button


Related Articles

What is Cucumber?

Cucumber is a software tool used by computer programmers for testing other software. It runs automated acceptance tests written in a behavior-driven development (BDD) style. ... Cucumber is written in the Ruby programming language.

Behavior Driven Development (BDD) is a rising methodology to test and check your code. Cucumber is a flagship BDD tool and this course is geared to make you Cucumber pro!
Cucumber tools also support Behavior Driven Development (BDD).It offers a way to write tests that anybody can understand, regardless of their technical knowledge

Benefits

  • It is helpful to involve business stakeholders who can't easily read code
  • Cucumber focuses on end-user experience
  • Style of writing tests allow for easier reuse of code in the tests
  • Quick and easy set up and execution
  • Efficient tool for testing

Video for Cucumber

https://www.youtube.com/watch?v=1G-m5PMC_cM

READ MORE

What is Jest?

Jest is an open JavaScript testing library from Facebook. Its slogan is "Delightful JavaScript Testing". While Jest can be used to test any JavaScript library, it shines when it comes to React and React Native. 

Main Benefits

     1) Developer Ready

             Complete and ready to set-up JavaScript testing solution. Works out of the box for any React project.

      2) Instant Feedback 

                Fast interactive watch mode runs only test files related to changed files and is optimized to give signal quickly.

      3) Snapshot Testing

               Capture snapshots of React trees or other serializable values to simplify testing and to analyze how state changes over time.

Jest is used by Facebook to test all JavaScript code including React applications. One of Jest's philosophies is to provide an integrated "zero-configuration" experience. 

NPM and Yarn Command for Installation.

npm install --save-dev jest

yarn add --dev jest

Video for JEST Library

https://www.youtube.com/watch?v=7r4xVDI2vho

READ MORE

What is Quasar Framework?

Quasar Framework allows you to build hybrid mobile apps with near-native like user-interface and uses VueJS 2 at its core. It is a MIT-licensed open source project.

Quasar framework has good set of documentation available on its website and provides an extensive set of Vue based UI components such as sliders, spinners, tooltip, popover, model dialogs, context menu, video embedding and many more.

Getting started with Quasar is easy and it offers its own set of CLI, much like the Ionic framework for out of the box setup and previews. You can build both Cordova as well as Electron (cross platform desktop apps) with this framework.

Features

  • All Platforms in One Go
  • Quasar Play App
  • VueJs & ES6
  • Boilerplate
  • Built-in Components
  • Themes
  • Speed & Efficiency
  • Wide Platform Support
  • Dev Hot Reload
  • Great Documentation​

Video for Quasar Framework

https://www.youtube.com/watch?v=qViIbzdlRWc​

READ MORE
...