Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Unit Test Frameworks
A Note Regarding Supplemental Files
Preface
Audience
Contents of This Book
Conventions Used in This Book
Using Code Examples
How to Contact Us
Acknowledgments
1. Unit Test Frameworks: An Overview
1.1. Test Driven Development
1.2. Unit Testing and Quality Assurance
1.3. Homegrown Unit Testing
2. Getting Started: Tutorial
2.1. Outline of an Application: the Virtual Library
2.2. Example 1: Create a Book
2.2.1. Step 0: Set Up the Unit Test Framework
2.2.2. Step 1: Create a Unit Test
2.2.3. Step 2: Create a Book
2.2.4. Step 3: Test Again
2.3. Example 2: Create a Library
2.3.1. Step 1: Test adding a Book to a Library
2.3.2. Step 2: Add a Book to a Library
2.3.3. Step 3: Check Unit Test Results
3. The xUnit Family of Unit Test Frameworks
3.1. xUnit Family Members
3.2. xUnit Extensions
3.3. The xUnit Architecture
3.3.1. TestCase
3.3.2. TestRunner
3.3.3. TestFixture
3.3.4. TestSuite
3.3.5. TestResult
3.4. xUnit Architecture Summary
4. Writing Unit Tests
4.1. Types of Asserts
4.2. Defining Custom Asserts
4.3. Single Condition Tests
4.4. Testing Expected Errors
4.5. (Not) Testing Get/Set Methods
4.6. Testing Protected Behavior
4.7. Test Code Organization
4.8. Mock Objects
4.9. AbstractTest
4.10. Performance Tests
4.11. New Library and Book Code
5. Unit Testing GUI Applications
5.1. Library GUI
6. JUnit
6.1. Overview
6.2. Architecture
6.3. Usage
6.4. Test Assert Methods
7. CppUnit
7.1. Overview
7.2. Architecture
7.3. Usage
7.4. Test Assert Methods
8. NUnit
8.1. Overview
8.2. Architecture
8.3. Usage
8.4. Test Assert Methods
9. PyUnit
9.1. Overview
9.2. Architecture
9.3. Usage
9.4. Test Assert Methods
10. XMLUnit
10.1. Overview
10.2. Architecture
10.3. Usage
10.4. Test Assert Methods
11. Resources
11.1. Web Sites
11.2. Discussion Groups
11.3. Books
A. Simple C++ Unit Test Framework
A.1. Example 1: Create a Book
A.1.1. Step 0: Set Up the Unit Test Framework
A.1.2. Step 1: Create a Unit Test
A.1.3. Step 2: Create a Book
A.1.4. Step 3: Test Again
A.2. Example 2: Create a Library
A.2.1. Step 1: Test Adding a Book to a Library
A.2.2. Step 2: Add a Book to a Library
A.2.3. Step 3: Check Unit Test Results
B. JUnit Class Reference
Assert
AssertionFailedError
ComparisonFailure
Protectable
Test
TestCase
TestFailure
TestListener
TestResult
TestSuite
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
← Prev
Back
Next →
← Prev
Back
Next →