Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Ajax Jquery Introduction to the QUnit Framework

Related Tutorials


 
 

Share on Google+Share on Google+

Introduction to the QUnit Framework

Advertisement
This page discusses - Introduction to the QUnit Framework

Introduction to the QUnit Framework

     

Introduction to the QUnit Framework

QUnit is a efficient, user friendly test suite. It is basically designed to test the code of projects and plugins. But it can test any general JavaScript and can also check code resided on the server side.

Whenever a bud is found ,We can do regression testing using QUnit. Write a test that targets on particular section which has bug. Whenever you modify code , run the tests. If it Will have bugs , then you can fix it, because you know what code you just modified.

It also have some features which makes it different like it's stop/start facilities for testing asynchronous code.

To use QUnit, you have to include its ' qunit.js ' and ' qunit.css ' files in your web page as :

<link rel="stylesheet" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css" type="text/css" media="screen" />

<script type="text/javascript" src="http://github.com/jquery/qunit/raw/master/qunit/qunit.js"></script>

For Downloading  'qunit.js' click here

For Downloading 'qunit.css' click here

If you are Downloading it , then you need not to give url of these. You just need to give the path of these saved file as :

<link rel="stylesheet" href="qunit.css" type="text/css" media="screen" />

<script type="text/javascript" src="qunit.js"></script>

In the above case ,file should be saved in the same folder in which web page is stored.

Learn from experts! Attend jQuery Training classes.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 18, 2011

Related Tutorials

Discuss: Introduction to the QUnit Framework  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com