SoftwareTesting:Tools:UnitTest: Difference between revisions

no edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
== Description ==
== Description ==


What is a “unit”? It can be a module, a class, a method or even a single block of code. Any encapsulation can be considered a unit and is up to the developer to define. A suite of tests can be written to test correctness of the unit and assert that a piece of code evaluates to true.
What is a �unit”? It can be a module, a class, a method or even a single block of code. Any encapsulation can be considered a unit and is up to the developer to define. A test asserts that a piece of code evaluates to true. A suite of tests can be written to test correctness of the unit.


== Tasks ==
== Tasks ==
Line 9: Line 9:
# <strike>Create base MinUnit headers in mozilla/testing</strike>
# <strike>Create base MinUnit headers in mozilla/testing</strike>
# Implement example MinUnit Unit Tests
# Implement example MinUnit Unit Tests
# Create [http://www.gamesfromwithin.com/articles/0512/000103.html CppUnitLite] in mozilla/testing
# <strike>Create [http://www.gamesfromwithin.com/articles/0512/000103.html CppUnitLite] in mozilla/testing</strike>
# Implement example CppUnitLite Unit Tests
# Implement example CppUnitLite Unit Tests
# Create [http://cxxtest.sourceforge.net/ CxxTest] in mozilla/testing
# <strike>Create [http://cxxtest.sourceforge.net/ CxxTest] in mozilla/testing</strike>
# Implement example CxxTest Unit Tests
# Implement example CxxTest Unit Tests
# Reporting mechanism / framework
# Reporting mechanism / framework
Line 22: Line 22:
# reporting mechanism still TBD
# reporting mechanism still TBD
# testing platform still TBD
# testing platform still TBD
[[Category:SoftwareTesting]]
201

edits