Caché %UnitTest Tutorial
- Caché %UnitTest Tutorial
- Unit Testing Overview
- What is a Unit Test?
- Why Unit Test?
- xUnit Testing Frameworks
- Structure of %UnitTest and xUnit Frameworks
- Test Automation
- Test First Methodology
- Red – Green – Refactor
- Recap
- Unit Testing Caché Code with %UnitTest
- What is %UnitTest?
- Creating and Executing a Suite of Unit Tests
- %UnitTest Classes
- Assert Methods and Macros
- Importing Classes to Use in the Examples
- Example: Creating and Exporting a Test Class
- Example: Executing a Test
- Example: UnitTest Portal
- Example: Viewing the CSP Test Report
- Set-Up and Tear Down
- Example: Adding Set-Up and Tear Down Methods to a Test
- Example: Executing a Test Using Set-Up and Tear Down Methods
- Options for Executing Tests: Test Specs and Qualifiers
- RunTest Examples
- DebugRunTestCase
- Exercises
- Recap