nerdexam
iSQI

CTFL_SYLL_4.0 · Question #138

Which of the following statements about the test pyramid is TRUE?

The correct answer is B. The higher the layer of the test pyramid, the more production code a single automated test within. The test pyramid concept suggests that there should be more low-level tests (unit tests) and fewer high-level tests (end-to-end tests). As we move higher up the pyramid (e.g., from unit tests to integration tests to end-to-end tests), each test covers more production code…

Testing Throughout the Software Development Lifecycle

Question

Which of the following statements about the test pyramid is TRUE?

Options

  • AEach layer of the test pyramid groups tests related to a single non-functional quality
  • BThe higher the layer of the test pyramid, the more production code a single automated test within
  • CThe higher the layer of the test pyramid, the more maintainable a single automated test within the
  • DThe higher the layer of the test pyramid, the more isolated a single automated test within the layer

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    86% (19)
  • C
    9% (2)

Explanation

The test pyramid concept suggests that there should be more low-level tests (unit tests) and fewer high-level tests (end-to-end tests). As we move higher up the pyramid (e.g., from unit tests to integration tests to end-to-end tests), each test covers more production code. Higher-level tests (like end-to-end) validate larger parts of the application, including multiple units and their interactions. This aligns with the principle that higher-level tests provide broader coverage but are fewer in number and more expensive to run and maintain.

Topics

#test pyramid#test automation#production code coverage#test isolation

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice