C/SIDE Test-driven development
NAV 2013 includes an 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:
Designing testing processes in conjunction with functional design
Finding bugs at an earlier stage
Preventing bugs reaching production
Enabling 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 C/AL code to support Test methods, including the AssertError function. Test Runner Codeunits are used to invoke...