I have some difficulty understanding the concept of "fixture". I know what a test suite is, a test case, a test run,
but what exactly is a "fixture"? A parameterized test case?
It seems to me that the meaning or semantics of the term "fixture" can vary slightly by programming language or by testing framework? I think a phpunit fixture
"the code to set the world up in a known state and then return it to
its original state when the test is complete. This known state is
called the fixture of the test."
is slightly different from a "fitnesse fixture", where
"Fixtures are a bridge between the Wiki pages and the System Under
Test (SUT), which is the actual system to test".
Is there an expert in software testing around here who can answer this question? References to other programming languages are welcome.
Best Answer
In the context of testing tools you mentioned, such as PHPUnit and Fitnesse, this term definitely refers to the notion of test fixture: