CSC/ECE 517 Fall 2012/ch1 1w3 pl: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:


=Introduction=
=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
Unit testing is a software development process for testing individual units of source code independently for proper operation <sup>[http://en.wikipedia.org/wiki/Unit_testing]</sup>. An unit testing framework helps the process of unit testing by automating the test cases which are written to ensure the correctness of the system . Ruby provides a framework in its standard library for setting up, organizing, and running tests called Test::Unit <sup>[http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing]</sup>. Other testing framework available for ruby are  Shoulda, RSpec, Cucumber.
# Shoulda
# RSpec

Revision as of 22:07, 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 software development process for testing individual units of source code independently for proper operation [1]. An unit testing framework helps the process of unit testing by automating the test cases which are written to ensure the correctness of the system . Ruby provides a framework in its standard library for setting up, organizing, and running tests called Test::Unit [2]. Other testing framework available for ruby are Shoulda, RSpec, Cucumber.