In the previous chapter, we saw how to debug AL extensions with Visual Studio Code.
In this chapter, we will have a look at how to write automated tests for an extension in AL. We need to do this in order to have a modern development life cycle, and it's mandatory if you want to publish your extensions on AppSource.
Using the demo extension that was developed in Chapter 5, Developing a Customized Solution for Dynamics 365 Business Central, we will cover the following topics:
- Designing tests using the Acceptance Test-Driven Development pattern
- Setting up a test extension
- The technique behind testing code
- Implementing test code