Tests should... A) Be executed in sequence for greatest efficiency B) Should be…
- User
Tests should... A) Be executed in sequence for greatest efficiency B) Should be dependent on the implementation of production code C) Be independent of other tests D) Be exhaustive--testing all combinations
Assistant
The correct answer is C: Tests should be independent of other tests.
Some key principles of good testing are:
A) Tests should not depend on the order they are executed. They should be independent and able to run in any sequence. B) Tests should not depend on the implementation details of the production code. They should test the functionality and outputs, not how the code achieves that. C) Tests should be independent of each other. One test failing should not cause a cascade of other test failures. Each test should test one thing. D) Tests do not need to be exhaustive. It is not practical to test all possible combinations and scenarios. A good set of tests should cover the most important use cases and potential issues.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.