Microservice Architecture Design Pattern-(13) Test

Manual testing is inefficient

  • Never do something that a machine can do better

Testing here refers to automated testing

Four stages of automated testing

  • Set up the environment
    • Create an environment and set relevant information to the required initial state
  • Execute tests
    • Call the system under test, such as calling a method
  • Validation results
    • Is it consistent with expectations?
  • Clean up the environment
    • Data rollback to previous state

test

  • unit test
    • Test small parts of a service, such as classes
  • integrated
    • Whether it is possible to interact with basic services or other applications
  • Component testing
    • Testing of a single service
  • End-to-end testing
    • Entire application

Guess you like

Origin blog.csdn.net/u014704998/article/details/129051351