C/SIDE Test-driven development
NAV 2015 includes the enhanced C/AL Testability feature set designed to support C/AL test-driven development. Test-driven development is an approach where the application tests are defined prior to the development of the application code. In an ideal situation, the code supporting application tests is written prior to, or at least at the same time as, the code implementing the target application function written.
Advantages of test-driven development include:
- Design testing processes in conjunction with functional design
- Find bugs early
- Prevent bugs reaching production
- Enable regression testing, preventing changes introducing bugs into previously validated routines
The C/AL Testability feature provides test specific types of Codeunits—Test Codeunits and Test Running Codeunits. Test Codeunits contain Test methods, UI handlers, and the C/AL code to support Test methods including the AssertError function. Test Runner Codeunits are used to invoke...