NetBeans Platform Test Infrastructure Tutorial


During development of NetBeans Platform 6.5, an effort was made to improve the testing infrastructure provided for NetBeans Platform applications. Prior to that, many small magical build scripts and other configuration files were needed when setting up the test infrastructure for NetBeans Platform applications. Since then, however, there is inherent support for testing NetBeans Platform application within the NetBeans Platform's build harness scripts. Therefore, unit and functional tests for NetBeans Platform applications are now supported out of the box. This simplification of the testing infrastructure is sometimes referred to as "simpletests", since it greatly simplifies the work necessary to set up such tests for your application.
In this tutorial, you are introduced to setting up the "simpletests" infrastructure and to using the NetBeans Platform's unit testing and functional testing frameworks. These are:
NB Junit. NetBeans Platform extension to the JUnit testing framework.
Jelly Tools. NetBeans Platform extension to the Jemmy testing framework.
By the end of this tutorial, you should know how to set up the NetBeans Platform testing infrastructure, how to create unit tests, and how to create functional tests.
Contents

Setting Up the Testing Infrastructure
Unit Testing on the NetBeans Platform
Functional Testing on the NetBeans Platform
Code Coverage on the NetBeans Platform

No comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More