Book description
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
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Preface
- 1. Unit Test Frameworks: An Overview
- 2. Getting Started: Tutorial
- 3. The xUnit Family of Unit Test Frameworks
- 4. Writing Unit Tests
- 5. Unit Testing GUI Applications
- 6. JUnit
- 7. CppUnit
- 8. NUnit
- 9. PyUnit
- 10. XMLUnit
- 11. Resources
- A. Simple C++ Unit Test Framework
- B. JUnit Class Reference
-
C. CppUnit Class Reference
- assertion_traits
- AutoRegisterSuite
- CompilerOutputter
- Exception
- Exception::Type
- ExpectedExceptionTraits
- NamedRegistries
- NotEqualException
- Orthodox
- Outputter
- RepeatedTest
- SourceLine
- SynchronizedObject
- SynchronizedObject::ExclusiveZone
- SynchronizedObject::SynchronizationObject
- Test
- TestCaller
- TestCase
- TestDecorator
- TestFactory
- TestFactoryRegistry
- TestFailure
- TestFixture
- TestFixtureFactory
- TestListener
- TestResult
- TestResultCollector
- TestRunner
- TestSetUp
- TestSucessListener
- TestSuite
- TestSuiteBuilder
- TestSuiteFactory
- TextOutputter
- TextTestProgressListener
- TextTestResult
- XmlOutputter
- XmlOutputter::Node
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Unit Test Frameworks
- Author(s):
- Release date: November 2004
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596006891
You might also like
book
Effective Unit Testing
Effective Unit Testing is written to show how to write good tests—tests that are concise and …
book
The Art of Unit Testing, Second Edition
The Art of Unit Testing, Second Edition guides you step by step from writing your first …
book
The Art of Unit Testing
Unit testing, done right, can mean the difference between a failed project and a successful one, …
video
The Art of Unit Testing, 2nd Ed, video edition
"This book is something special. The chapters build on each other to a startling accumulation of …