Wikipedia link about what a test case describes a test case as:

a specification of the inputs, execution conditions, testing procedure, and expected results that define a single test to be executed to achieve a particular software testing objective, such as to exercise a particular program path or to verify compliance with a specific requirement.

This definition comes from ISO/IEC/IEEE International Standard - Systems and software engineering -- Vocabulary.

However, my question is how are execution conditions and testing procedures traits of unit tests' test cases?

I was never taught those terms in relation to test cases for unit testing, which makes things confusing. Maybe I am not understanding the text.

1 Answer 1


Execution condition is actually the context of your tests (in common terms and in terms of specific frameworks like Spring, etc.). You can control it using so called Test Doubles (thanks to João Farias since I was not aware of such term) which could be for example Fakes, Stubs or Mocks.

Execution procedure is simply the logic of your test.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.