Define the concept of the test pyramid. Explain the process to implement them in terms of HTTP APIs.

According to test pyramid you should have a higher number of low- as compared to high-level end-to-end tests that running through a GUI.

In terms of HTTP APIs it may be defined as:

  • A higher number of low-level unit tests for each model
  • Lesser integration tests to test model interactions
  • Lesser acceptance tests for testing actual HTTP endpoints

Comments

Popular posts from this blog

What is an Event loop in Node.js and how does it work?

What is promise, promise.all and promise.race? How do you chain promises?