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开发者_StackOverflow中文版 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.
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".
精彩评论