Unit Test Frameworks: Tools for High-Quality Software Development [NOOK Book]

Overview

Unit test frameworks are a key element of popular development methodologies such as eXtreme Programming (XP) and Agile Development. But unit testing has moved far beyond eXtreme Programming; it is now common in many different types of application development. Unit tests help ensure low-level code correctness, reduce software development cycle time, improve developer productivity, and produce more robust software.Until now, there was little documentation available on unit testing, and most sources addressed ...

See more details below
Unit Test Frameworks: Tools for High-Quality Software Development

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$13.49
BN.com price
(Save 43%)$23.99 List Price

Overview

Unit test frameworks are a key element of popular development methodologies such as eXtreme Programming (XP) and Agile Development. But unit testing has moved far beyond eXtreme Programming; it is now common in many different types of application development. Unit tests help ensure low-level code correctness, reduce software development cycle time, improve developer productivity, and produce more robust software.Until now, there was little documentation available on unit testing, and most sources addressed specific frameworks and specific languages, rather than explaining the use of unit testing as a language-independent, standalone development methodology. This invaluable new book covers the theory and background of unit test frameworks, offers step-by-step instruction in basic unit test development, provides useful code examples in both Java and C++, and includes details on some of the most commonly used frameworks today from the XUnit family, including JUnit for Java, CppUnit for C++, and NUnit for .NET.Unit Test Frameworks includes clear, concise, and detailed descriptions of:

  • The theory and design of unit test frameworks
  • Examples of unit tests and frameworks
  • Different types of unit tests
  • Popular unit test frameworks
  • And more
It also includes the complete source code for CppUnit for C++, and NUnit for .NET.
Read More Show Less

Product Details

  • ISBN-13: 9780596552817
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 11/2/2004
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 216
  • Sales rank: 869,274
  • File size: 3 MB

Meet the Author

Hamill has more than 10 years of experience developing code using C/C++, Java, and other languages.

Read More Show Less

Table of Contents

1 Unit test frameworks : an overview 1
2 Getting started : tutorial 7
3 The xUnit family of unit test frameworks 18
4 Writing unit tests 32
5 Unit testing GUI applications 51
6 JUnit 63
7 CppUnit 70
8 NUnit 80
9 PyUnit 88
10 XMLUnit 97
11 Resources 110
A Simple C++ unit test framework 113
B JUnit class reference 122
C CppUnit class reference 137
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted July 26, 2005

    Great book on unit test frameworks

    Unit test frameworks are software tools to support writing and running unit tests, including a foundation on which to build tests and the functionality to execute the tests and report their results. They can contribute to almost every stage of software development and are key tools for doing Agile Development and building bug-free code. This book outlines the major unit test frameworks available today and describes how to go about using one of them. Creating a unit test requires developers to think about their programming in a slightly different light. The Author did an excellent job in explaining what a unit test is, how to write it, and how to test what you really want to test. He instantiates with the popular open source Junit and covers extensively but he also covers other test frameworks, like CppUnit, XMLUnit, PyUnit and NUnit. I would recommend this book to someone interested in topic.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted March 15, 2005

    A must for test-first programmers

    One of the major pushes in any agile methodology is that of test-first programming. Test first programming requires the developer to write a programmatic unit test to test the functionality being created. Unit Test frameworks have appeared to aid developers in this regard. Basically, unit test frameworks allow programmers to create tests¿written in their language of choice¿for the piece of functionality created. While test first programming might sound a bit backwards or like an added expense in an already busy project plan, it is in fact a priceless tool in quickly developing quality code. This book outlines the major unit test frameworks available as well as how to go about using one of them. Creating a unit test requires developers to think about their programming in a slightly different light. This book does an excellent job in explaining what a unit test is, how to write it, and how to test what you really want to test. The book then goes in depth to discuss the specific various frameworks, including JUnit, CppUnit, and NUnit (to name only a few). While giving some excellent instruction, this book also manages to include some good architecture lessons. In one such example, the author discusses the disadvantage of tying UI to code and how that makes unit tests much more complicated to write and maintain. I was quite pleased with this book, and I would highly recommend it to any programmer. Writing unit tests for your code during development will radically change how you program¿for the better.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 20, 2004

    expounds well in several languages

    Hamill directs this book towards programmers of any level of experience. He points out that in all likelihood, you have hand crafted simple unit tests to validate your code. Even if you did not call them unit tests, you had the basic concept down. He takes this as a mutual starting point, to ease you into a more formal testing approach. Why you should do it and how. For the how, he instantiates with the popular open source JUnit. So at the very least, the book is a full-fledged user's manual for JUnit But he also covers other test frameworks, like CppUnit, XMLUnit, PyUnit and NUnit. For example, NUnit is used in the .NET environment, to test C# code. He gives several C# examples and how to combine these with NUnit. Likewise, PyUnit tests Python code and we see how from some examples. The book certainly lives up to its promise of being a language independent coverage of the concept of unit testing.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)