Which of the following is a characteristic of a SUT that has been designed for testability?
Which of the following is a characteristic of a SUT that has been designed for testability?
A system under test (SUT) designed for testability would include interfaces that allow test automation to verify the system behavior in response to stimuli. This makes it easier to observe and control the states and reactions of the system during testing, ensuring comprehensive and effective testing processes.
In fact, including stubs directly in production code might not always be considered good practice, as it can introduce complexity and potential maintenance issues. Stubs are typically used in testing environments or as part of test doubles to simulate the behavior of external dependencies or components, NOT in production. So C is incorrect. D is correct