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

From Expertiza_Wiki
Jump to navigation Jump to search
Line 8: Line 8:


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.
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.
=Cucumber=
Cucumber is one of the latest unit test frameworks to have come for Ruby as part of the RSpec family of tools. Cucumber is written in the Ruby programming language and adheres to behaviour driven development(BDD). Behaviour Driven Development is an Agile Development process that comprises aspects of Acceptance Test Driven Planning , Domain Driven Design and Test Driven Development (TDD).  Cucumber is designed specifically to ensure the acceptance tests can easily be read and written by anyone.

Revision as of 22:09, 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.

Cucumber

Cucumber is one of the latest unit test frameworks to have come for Ruby as part of the RSpec family of tools. Cucumber is written in the Ruby programming language and adheres to behaviour driven development(BDD). Behaviour Driven Development is an Agile Development process that comprises aspects of Acceptance Test Driven Planning , Domain Driven Design and Test Driven Development (TDD). Cucumber is designed specifically to ensure the acceptance tests can easily be read and written by anyone.