Chapter 6. Testing, performance, and the cloud
This chapter covers
- Testing your service
- Enforcing code quality and test coverage
- Developing for the cloud
In the final chapter for this section on design-time policies we’ll look at testing, performance, and how to run your service in the cloud. Even though these aren’t strictly policies, it’s important that during the design phase of your service you take these subjects into account.
In this chapter we’ll specifically look at the following areas:
- How to test your service— There are many different ways you can test a service. In this section I’ll show you the different levels on which you can test your service and provide you with an example service and test cases, which you can use as a starting point for your own services.
- How to enforce code quality and test coverage— Once you have a service and a set of test cases, you need to find a way to measure the quality of your tests and the service you’ve created. I’ll provide you with an environment using open source tools that can help you in measuring the quality of your service.
- Developing for the cloud— When your services need to scale, or maybe for economic purposes, you might want to run your services in the cloud. This section will provide you with some guidelines on how to create a service that can run in the cloud. I’ll explain this based on a service that uses Amazon’s cloud services.
We’ll start by looking at how you can effectively test your service.