User Tools

Site Tools


devops:tests:testing_services

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devops:tests:testing_services [2023/06/07 16:43] – [Motivation] skipidardevops:tests:testing_services [2024/11/30 16:51] (current) – [Tactics, Approach] skipidar
Line 40: Line 40:
  
 https://kevinvecmanis.io/books/management/2020/11/20/Accelerate-Book-Review.html https://kevinvecmanis.io/books/management/2020/11/20/Accelerate-Book-Review.html
 +
 +
 +
 +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, the scope of our end-to-end tests
 +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, cause our
 +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, 2nd Edition}, Sam Newman, 2021, O'Reilly Media, Inc
 +
  
 ==== Goal formulation ==== ==== Goal formulation ====
Line 59: Line 85:
  
 https://agiletester.ca/applying-the-agile-testing-quadrants-to-continuous-delivery-and-devops-culture-part-1-working-towards-continuous-delivery/ https://agiletester.ca/applying-the-agile-testing-quadrants-to-continuous-delivery-and-devops-culture-part-1-working-towards-continuous-delivery/
 +
 +{{https://agiletester.ca/wp-content/uploads/2020/12/Agile-Testing-Quadrants-768x521.jpg}}
 +====== Strategy  ======
 +
 +==== Strategy as Trophy ====
 +
 +https://kentcdodds.com/blog/static-vs-unit-vs-integration-vs-e2e-tests
 +
 +{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/GmCNsXNsnu.png}}
 +
 +
 +
 +
 +==== Strategy as Testing Pyramid  ====
 +
 +https://kentcdodds.com/blog/static-vs-unit-vs-integration-vs-e2e-tests
 +
 +{{https://www.onpathtesting.com/hs-fs/hubfs/agile%20testing%20pyramid%20onpath%20testing%20QA.png?width=3891&name=agile%20testing%20pyramid%20onpath%20testing%20QA.png}}
 +
 +
 +
 +==== Strategy Contract testing over Enterprise-wide-testing ====
 +
 +LESS enterprise wide Test environment
 +https://www.thoughtworks.com/radar/techniques/summary/enterprise-wide-integration-test-environments
 +
 +MORE Contract Testing
 +https://www.thoughtworks.com/radar/techniques/consumer-driven-contract-testing
devops/tests/testing_services.1686156196.txt.gz · Last modified: by skipidar