What is SUT and where did it come from?

旧城冷巷雨未停 提交于 2019-11-29 09:03:50

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.

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 someon else's responsibility).

I've never heard the term eiher, but a quick search gave

System under test (SUT) refers to a system that is being tested for correct operation. The term is used mostly in software testing.

A special case of a software system is an application which, when tested, is called an application under test.

The term SUT means also a stage of maturity of the software, because a system test is the successor of integration test in the testing cycle.

From good ole wikipedia.

Where does this term come from?

DUT (device under test) and UUT (unit under test) are very common abbreviations among test enginers (non-software test engineers). That's where the term SUT (system under test)
and CUT (code under test) ought to have come from.

related:
2008 MSDN blog post Naming SUT Test Variables .

System Under Test SUT.

In your unit test example, if you really want to talk about SUT it's probably UsersAction. However, I have not come across anyone use SUT when talking about unit testing. To me this sounds more like something that would fit with integration/system/performance testing or alike.

For instance, take performance testing. Here you might say the SUT is the whole HW/SW system, or it might be just one of them depending on what you're testing in that specific performance test.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!