Self-testing code

Self-testing code

Self-testing code is software which incorporates built-in tests (see test-first development).

In Java, to execute a unit test from the command line, a class can have methods like the following.// Executing main runs the unit test. public static void main(String [] args) { test();}

static void test() { assert foo = bar;}To invoke a full system test, a class can incorporate a method call.public static void main(String [] args) { test(); TestSuite.test(); // invokes full system test}

ee also

*Software development
*Extreme programming


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Code Monkeys — For the phrase on which this program s title is based, see code monkey. Code Monkeys Code Monkeys title card; main characters from left to right: Black Steve, Dave, Todd, Clare, Jerry, Mary, Mr. Larrity, Dean and Benny. G …   Wikipedia

  • Software testing — is an empirical investigation conducted to provide stakeholders with information about the quality of the product or service under test [ [http://www.kaner.com/pdfs/ETatQAI.pdf Exploratory Testing] , Cem Kaner, Florida Institute of Technology,… …   Wikipedia

  • Digital video testing — in broadcast video, for example, is the process of validating and verifying that the video content and other data is being correctly processed, stored and transported. Despite the fact that the data is digital, most digital tv (DTV) system… …   Wikipedia

  • Portable appliance testing — For other uses, see PAT (disambiguation). A common label for certifying that a device has been tested. Portable appliance testing (commonly known as PAT or PAT Inspection or PAT Testing) is a process in the United Kingdom, New Zealand and… …   Wikipedia

  • Software testing controversies — Software Testing portal There is considerable variety among software testing writers and consultants about what constitutes responsible software testing. Members of the context driven school of testing[1] believe that …   Wikipedia

  • National Electrical Code — The National Electrical Code, 2008 edition The National Electrical Code (NEC), or NFPA 70, is a regionally adoptable standard for the safe installation of electrical wiring and equipment. The NEC, while having no legally binding regulation as… …   Wikipedia

  • Power-on self-test — (POST) is the common term for a computer, router or printer s pre boot sequence. The same basic sequence is present on all computer architectures. It is the first step of the more general process called initial program load (IPL), booting, or… …   Wikipedia

  • Самотестирующийся код — (от англ. Self testing code)  программное обеспечение, включающее в себя встроенные тесты (смотри Разработка через тестирование). В языке Java, для выполнения модульных тестов из командной строки класс может иметь методы наподобие… …   Википедия

  • Automated Tissue Image Systems — (ATIS) are computer controlled automatic test equipment (ATE) systems classified as medical device and used as pathology laboratory tools (tissue based cancer diagnostics) to characterize a stained tissue sample embedded on a bar coded glass… …   Wikipedia

  • Algorithmic efficiency — In computer science, efficiency is used to describe properties of an algorithm relating to how much of various types of resources it consumes. Algorithmic efficiency can be thought of as analogous to engineering productivity for a repeating or… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”