Testing Pyramid

Balance the Test Pyramid

Unit tests

  • Testing individual components or functionalities. They are small and isolated, so every Unit test can run separately.
  • They are fast, so they can be executed often. The good practice is to execute the Unit tests with every code change.
  • They are considered the cheapest as they are easiest to maintain, they run fast and can be the first to find mistakes if used properly.
  • These are the reasons for having the highest number of Unit tests.

System / Integration tests

  • Testing the interaction between individual components of application as interactions between APIs, databases and the like. This is the reason for higher complexity than Unit tests, but they exclude the testing of the UI compared to the E2E tests.
  • They are slower compared to the unit tests as they test parts of the application interacting together.
  • The maintenance costs are higher since the different parts of the app are involved.

User Interface (UI) / End-to-end (E2E) tests

  • To ensure that the whole application works as required. User interface testing is the usual way of implementing such tests.
  • These tests take the longest time to run, which can be expensive. That is why they are not run so often compared to the previous.
  • They are the most expensive to maintain as a lot of them can be broken easily by system enhancements.

Similar posters

WRAP Decision-Making
WRAP Decision-Making The WRAP model for decision-making helps us to be aware of and avoid decision-making biases like Outcome, Cognitive & Confirmation Bias.
MVP Types
MVP Types Minimum Viable Product (MVP) is a simple product with only a minimal set of features to enable testing with real users. That can be achieved using various types of MVPs.
Lean Startup
Lean Startup The Lean Startup is an approach for creating and sustaining a successful startup. Short business-hypothesis-driven development cycles.
SCARF SCARF Model represents five areas influencing human behavior. The human brain wants to minimize danger or maximize reward which activate respective responses. It explains and helps to deal with human reactions, motivations, and interactions. Description Reward state activators Threat state activators Status Relative importance to others, personal worth Positive and mutual feedback, public acknowledgment Critique,...
Westrum Organizational Culture
Westrum Organizational Culture Westrum Organizational Culture The organizational culture predicts the information flow in an organization. Good information answers the questions that need to be answered in a timely manner and the receiver can effectively use it. Good information flow is critical to be safe and effective in high-tempo and high-consequence environments. Culture Pathological Bureaucratic Generative Description Fear...
DevOps Improvements
DevOps Improvements Acronymat DevOps Areas of improvement - 24 DevOps Capabilities in 5 categories: CD, Architecture, Lean Management and Monitoring, Cultural.
Transformational Leadership
Transformational Leadership Transformational Leadership - Vision, Inspirational communication, Intellectual stimulation, Supportive leadership, Personal recognition.
Rugged Manifesto
Rugged Manifesto Acronymat: The Rugged Manifesto for DevOps / DevSecOps: I am rugged and, more importantly, my code is rugged.
Design Thinking
Design Thinking Design Thinking is an iterative, user-centered, solution-based approach to solving problems by creating innovative solutions.
Design Thinking Mindset
Design Thinking Mindset Design Thinking Mindset - Seven Design Thinking Mindset Principles for doing it the right way. Check out the Acronymat poster.