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
Learning from jQuery
If you’re comfortable with jQuery but a bit shaky with JavaScript, this concise guide will help …
book
Deploying Reactive Microservices
Just as a high-rise tower depends on a suitably resilient, purpose-built foundation for stability, Reactive microservices …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
video
Refactoring to Modern Java
Two Hours of Video Instruction OverviewMany Java developers today are working on applications written before the …