CSC/ECE 517 Fall 2012/ch1 1w3 pl: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
__TOC__ | __TOC__ | ||
=Introduction= | |||
Unit testing is a method by which we can isolate and test a unit functionality of the program, typically individual methods during and long after the code is written. <sup>[http://en.wikipedia.org/wiki/Unit_testing]</sup> It helps to identify errors in the program even without running the entire program. It also helps to do regressing testing to identify buggy code additions in the future. Unit testing frameworks provides us with constructs which simplifies the process of unit testing. Using a standard unit test framework helps other developers to add test cases easily. <sup>[http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing]</sup> This chapter walks through three different unit testing frameworks available for Ruby and explains how to use them with examples. The three commonly used unit testing frameworks for ruby are | |||
# Test::Unit | |||
# Shoulda | |||
# RSpec |
Revision as of 22:05, 13 September 2012
Unit-Testing Frameworks for Ruby: Cucumber
This wiki-page serves as a knowledge source for understanding Unit-Testing Frameworks available for Ruby particularly Cucumber .
Introduction
Unit testing is a method by which we can isolate and test a unit functionality of the program, typically individual methods during and long after the code is written. [1] It helps to identify errors in the program even without running the entire program. It also helps to do regressing testing to identify buggy code additions in the future. Unit testing frameworks provides us with constructs which simplifies the process of unit testing. Using a standard unit test framework helps other developers to add test cases easily. [2] This chapter walks through three different unit testing frameworks available for Ruby and explains how to use them with examples. The three commonly used unit testing frameworks for ruby are
- Test::Unit
- Shoulda
- RSpec