shiouming
shiouming

Reputation: 1949

Software testing terminology

Let say I have written a small program that reads file_A and file_B as input data of test_case_A and test_case_B, passes the input to component_X which needs to be test, then verifies result against predefined expectation. That component_X could be in the same process, or different process on another machine.

I try to learn more about testing, but confused by various terms. Take above scenario as example, which of them is fixture/mock/harness/stub? Thanks.

Upvotes: 1

Views: 254

Answers (1)

S.Lott
S.Lott

Reputation: 391818

The thing you are testing plus the sample data plus the mocked objects is the "fixture". The entire business is a fixture for testing a component. In the old days we called this a "harness"

The things the fixture requires that you are not testing are "mocks" or "stubs".

Upvotes: 1

Related Questions