Test driven development and X++
Test driven development (TDD) is a great way to work with unit testing in D365FO development. There are multiple benefits working with and introducing automatic tests for your code base. You’ll code correctly faster, Good tests make good documentation You won’t forget to write the tests You’ll write more meaningful tests when you test before code It makes introducing changes later in ALM easier It pushes you to write cleaner code, smaller pieces of code to make testing easier. The principles of TDD are as follows. You are not allowed to write any production code unless it is to make a failing unit test pass. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures. You are not allowed to write any more production code than is sufficient to pass the one failing unit test. If followed they will ensure that the developer is either working on writing test code or business logic. In X++ it's easy to f