Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is SUT and where did it come from?

I see many people talking about the term SUT, but do not understand why they use that term.

SUT is what you want to test?

Where does this term come from and what does it mean?

For example in this test, what is my SUT?

[TestMethod] public void UsersAction_should_return_IndexAction() {     const long id = 1;      UsersViewModel viewModel = new UsersViewModel()     {         SelectedUsers = new long[] { 1, 2, 3, 4 }     };      ActionResult result = _controller.Users(id, viewModel);      result.AssertActionRedirect().ToAction("Index"); } 
like image 977
Acaz Souza Avatar asked Sep 06 '11 14:09

Acaz Souza


People also ask

What is testing explain?

In general, testing is finding out how well something works. In terms of human beings, testing tells what level of knowledge or skill has been acquired. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met.

What is test suite in software engineering?

You develop test cases to define the things that you must validate to ensure that the system is working correctly and is built with a high level of quality. A test suite is a collection of test cases that are grouped for test execution purposes.

What are the types of integration testing?

Some different types of integration testing are big-bang, mixed (sandwich), risky-hardest, top-down, and bottom-up. Other Integration Patterns are: collaboration integration, backbone integration, layer integration, client-server integration, distributed services integration and high-frequency integration.


2 Answers

The System Under Test (SUT) from a Unit Testing perspective represents all of the actors (i.e one or more classes) in a test that are not mocks or stubs. In your example that would be the controller.

like image 123
Darren Lewis Avatar answered Oct 07 '22 19:10

Darren Lewis


It most likely means "System Under Test", i.e. the system being tested, as opposed to other systems it may interact with, but which are not being explicitly tested (because they're someone else's responsibility).

like image 32
Michael Borgwardt Avatar answered Oct 07 '22 21:10

Michael Borgwardt