System Under Test
PronunciationSIS-tum UN-der test
Definition
The system under test (SUT) is the piece of code a test is checking. Everything around it is either real support or a stand-in.
Where you hear it
In testing books and design discussions, especially when deciding what to fake and what to keep real.
Examples
The SUT is the
Scheduleclass; the database is a fake.If the SUT is too hard to set up, the design may be too coupled.
The system under test is the billing function, and the payment API is replaced by a stub.
Common mistake
Faking the thing you mean to test. Then the test checks your fake, not your code.
Don't confuse with
A test double, which is a stand-in for something around the SUT, never the SUT itself.
Say it at work
- In a meeting or chat
What's the system under test here?
- In an email or ticket
Keep the SUT real and fake only its dependencies.
Keep exploring
More in Testing & Quality