Difference between revisions of "TUnit"

From TinyOS Wiki
Jump to: navigation, search
(TUnit TinyOS Unit Testing)
 
(Added my todo list of stuff to create)
Line 1: Line 1:
TUnit is a unit testing framework geared for TinyOS and sensor networks.  The philosophy surrounding the design of TUnit stems from years of accepted industry standard testing in other languages.
+
[[Image:tunit.png|frame]]
  
This area of TinyOS documentation will cover the installation of TUnit, basic unit testing, all the way up to advanced multi-node testing topics.
+
TUnit is a [http://en.wikipedia.org/wiki/Unit_testing unit testing] framework geared for TinyOS and sensor networks.  The philosophy surrounding the design of TUnit stems from years of accepted industry standard testing in [http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks other languages]. TUnit is used daily in TinyOS [http://en.wikipedia.org/wiki/Test-driven_development Test Driven Development], decreasing the time spend manually testing and debugging software by literally hundreds of man-hours.
 +
 
 +
==Open Source Testing==
 +
The TUnit unit testing framework is available [http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/tunit/ open source] to be used both publicly and privately. 
 +
 
 +
Unit tests can be contributed by the public to the public automated unit testing system in tinyos-2.x-contrib/tests. These tests are automatically checked out and executed on several dedicated mote hardware platforms. Results and lava lamp status indicators are available live at [http://www.lavalampmotemasters.com http://www.lavalampmotemasters.com].
 +
 
 +
Privately, any group can run TUnit standalone or as an automated process in their own team development environment.
 +
 
 +
==Tutorials==
 +
* [[Setting up TUnit]]
 +
* [[How TUnit Works]]
 +
** [[TUnit Philosophy]]
 +
** [[TUnit Test Flow]]
 +
** [[TUnit Assertions]]
 +
** [[suite.properties]]
 +
** [[tunit.xml]]
 +
* [[Basic Single-Node Unit Test]]
 +
* [[Advanced Single-node Unit Test]]
 +
* [[Applying Ant]]
 +
* [[Graphing Statistics]]
 +
* [[Multi-Node Unit Testing]]
 +
* [[Advanced Build Options]]
 +
* [[Automation]]
 +
 
 +
==External Links==
 +
* [http://www.lavalampmotemasters.com http://www.lavalampmotemasters.com] TUnit Public Automated Unit Testing Main Site
 +
* [http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd Three Rules of Test-Driven Development]
 +
* [http://radio.weblogs.com/0100190/stories/2002/07/25/sixRulesOfUnitTesting.html Six Rules of Unit Testing]
 +
* [http://www.xprogramming.com/xpmag/BigVisibleCharts.htm Big Visible Charts]
 +
* [http://www.ibm.com/developerworks/library/j-test.html Testing, fun? Really?]
 +
* [http://www.agiledata.org/essays/tdd.html Introduction to Test-Driven Design]

Revision as of 17:51, 20 December 2007

Tunit.png

TUnit is a unit testing framework geared for TinyOS and sensor networks. The philosophy surrounding the design of TUnit stems from years of accepted industry standard testing in other languages. TUnit is used daily in TinyOS Test Driven Development, decreasing the time spend manually testing and debugging software by literally hundreds of man-hours.

Open Source Testing

The TUnit unit testing framework is available open source to be used both publicly and privately.

Unit tests can be contributed by the public to the public automated unit testing system in tinyos-2.x-contrib/tests. These tests are automatically checked out and executed on several dedicated mote hardware platforms. Results and lava lamp status indicators are available live at http://www.lavalampmotemasters.com.

Privately, any group can run TUnit standalone or as an automated process in their own team development environment.

Tutorials

External Links