Chapter 1: X++ Unit Test Framework
Chapter 2: Working with Data
Chapter 3: Classes
Chapter 4: Forms
Chapter 5: Visual Studio Integration
Chapter 6: Workflow
Lesson 1 : Introduction and Objectives
Introduction and Objectives of X++ Unit Test Framework:
Introduction and Objectives of X++ Unit Test framework allows for unit tests to be created along with the code they are designed to test.
A unit test is code that verifies that feature code has been implemented correctly. If you adhere to the principles of TDD, it is best for the developer who is writing the feature code to first write the unit tests. This puts emphasis on how feature code is consumed and creates a more user friendly application programming interface (API). A unit test, in the context of the Unit Test framework, includes test cases, how test cases are staged with data, and the organization of test cases. A test case is a class that extends the SysTestCase Class class. You can add test methods to test each requirement of the feature code. You should execute test cases when code is changed.
A unit test is code that verifies that some specific application code has been implemented correctly. If you adhere to the principles of test–driven development, it is best for the developer who is writing the application code to write the unit tests either before or during development.
The objectives are:
- Create a test case.
- Add methods to a test case.
- Run a test case.
- Build a test project and suite.
- Isolate test cases appropriately.