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
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
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Learning Test-Driven Development
Your code is a testament to your skills as a developer. No matter what language you …
book
Modern PHP
PHP is experiencing a renaissance, though it may be difficult to tell with all of the …
book
Generative Deep Learning, 2nd Edition
Generative AI is the hottest topic in tech. This practical book teaches machine learning engineers and …