Setting up test development for extensions

If we take the most restrictive requirement for extensions (the requirement that Microsoft considers mandatory for approving your extension for release to AppSource), app and test code should be placed in separate extensions. As such, the test extension should have a dependency on the app extension.

This separation, however, might restrict the parallel development of the app and test code, since any change to an app extension results in its redeployment. This potentially also results in an update and redeployment of the test extension.

Before you realize it, you are continuously juggling your extensions, thereby reducing the productivity of the development team. The best course of action, while developing, is to have the app and test code placed in the same extension. Once it's ready, you can split up the code and create the two mandatory extensions by means of an automated build script or a specific merging strategy.

If your extension is not to be put on AppSource, I still strongly advise you not to release the test code in the app extension, in order to prevent automated tests from being run in a production environment.

In the specific case of our demo extension, where the app code is already completed, we can set up our test in a separate, dependent extension. In the next section, we'll see how to do that in practice.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.138.223