Posts tagged ‘Unit testing’

TestNG: Concepts, Methods and Examples

TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:

  • JDK 5 Annotations (JDK 1.4 is also supported with JavaDoc annotations).
  • Flexible test configuration.
  • Support for data-driven testing (with @DataProvider).
  • Support for parameters.
  • Allows distribution of tests on slave machines.
  • Powerful execution model (no more TestSuite).
  • Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc…).
  • Embeds BeanShell for further flexibility.
  • Default JDK functions for runtime and logging (no dependencies).
  • Dependent methods for application server testing.

TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc…


Bookmark and Share

Continue Reading 18 July, 2008 at 10:11 1 comment

Unit Testing: Examples, Concepts and Frameworks

“Testing is the process of executing a program with the intent of finding errors” (Myers)
“Testing can show the presence of bugs, but not the absence” (Dijkstra)

A good test case is one that has a high probability of detecting an as yet undiscovered error or a successful test case is one that detects an as yet undiscovered error (Myers).


Bookmark and Share

Continue Reading 9 July, 2008 at 21:44 11 comments


IT Passion’s Store

Archives

Communities

Get the Source
OSGi supporter
JUG Milano

Upcoming Events



....

Blog Stats

  • 335,774 hits

My PageRank

What's My Google PageRank?