Skip to content

haripery/unitTest_JS_Qunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unitTest_JS_Qunit

TDD javascript Application POST-IT NOTES with the help of QUnit. Test Driven Development of javascript has big advantage of writing clean code.

Code comparison is shown below

Normal Development vs Test Driven Development

codecompare

Post-it notes app entirely built on javascript with the help of Facade Design pattern(jQuery).It mainly consists of three sections:

  • Add Notes
  • Change color of the Notes
  • Delete Notes

Before Adding Notes

beforenotes

After Notes added

afternotes

After Notes deletion

deletenotes

HIGHLIGHTS:

  • Complete javascript webapp created with TEST DRIVEN DEVELOPMENT
  • Customized QUNIT html file for viewing the test cases
  • Qunit framework is used for UNIT TESTING
  • Integrated with phantomJS headless browser for CLI

STEPS TO RUN THE TEST POST IT APP WITH CLI:

  • INSTALL PHANTOMJS
  • CLONE THE unitTest_JS_Qunit REPOSITORY
  • open shell and navigate to the unitTest_JS_Qunit REPOSITORY
  • Execute the following command - $ phantomjs run-qunit.js test/qunit.html

Output in Command Line

unittest