devops:tests:testing_services
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devops:tests:testing_services [2023/06/07 16:43] – [Motivation] skipidar | devops:tests:testing_services [2024/11/30 16:51] (current) – [Tactics, Approach] skipidar | ||
|---|---|---|---|
| Line 40: | Line 40: | ||
| https:// | https:// | ||
| + | |||
| + | |||
| + | |||
| + | End-to-end tests for any type of system are at the extreme end of the | ||
| + | scale in terms of functionality they cover, and we are used to them | ||
| + | being more problematic to write and maintain than smaller-scoped | ||
| + | unit tests. Often this is worth it, though, because we want the | ||
| + | confidence that comes from having an end-to-end test use our systems | ||
| + | in the same way a user might. | ||
| + | But with a microservice architecture, | ||
| + | becomes very large. We would now need to run tests across multiple | ||
| + | services, all of which need to be deployed and appropriately | ||
| + | configured for the test scenarios. We also need to be prepared for the | ||
| + | false negatives that occur when environmental issues, such as service | ||
| + | instances dying or network time-outs of failed deployments, | ||
| + | tests to fail. | ||
| + | These forces mean that as your microservice architecture grows, you | ||
| + | will get a diminishing return on investment when it comes to end-to- | ||
| + | end testing. The testing will cost more but won’t manage to give you | ||
| + | the same level of confidence that it did in the past. This will drive you | ||
| + | toward new forms of testing, such as contract-driven testing, as well as | ||
| + | exploring release remediation techniques and ideas like testing in | ||
| + | production. | ||
| + | |||
| + | Building Microservices, | ||
| + | |||
| ==== Goal formulation ==== | ==== Goal formulation ==== | ||
| Line 59: | Line 85: | ||
| https:// | https:// | ||
| + | |||
| + | {{https:// | ||
| + | ====== Strategy | ||
| + | |||
| + | ==== Strategy as Trophy ==== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Strategy as Testing Pyramid | ||
| + | |||
| + | https:// | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | |||
| + | |||
| + | ==== Strategy Contract testing over Enterprise-wide-testing ==== | ||
| + | |||
| + | LESS enterprise wide Test environment | ||
| + | https:// | ||
| + | |||
| + | MORE Contract Testing | ||
| + | https:// | ||
devops/tests/testing_services.1686156196.txt.gz · Last modified: by skipidar
