ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 233 - CTFL4 discussion

Report
Export

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

A.
Each layer of the test pyramid groups tests related to a single non-functional quality charactenstic.
Answers
A.
Each layer of the test pyramid groups tests related to a single non-functional quality charactenstic.
B.
The higher the layer of the test pyramid, the more production code a single automated test within the layer tends to cover
Answers
B.
The higher the layer of the test pyramid, the more production code a single automated test within the layer tends to cover
C.
The higher the layer of the test pyramid, the more maintainable a single automated test within the layer tends to be
Answers
C.
The higher the layer of the test pyramid, the more maintainable a single automated test within the layer tends to be
D.
The higher the layer of the test pyramid, the more isolated a single automated test within the layer tends to be.
Answers
D.
The higher the layer of the test pyramid, the more isolated a single automated test within the layer tends to be.
Suggested answer: B

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.

asked 18/09/2024
Pang Guo Ming
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first