Wednesday, August 16, 2017

Word of the Day: unit testing

Word of the Day WhatIs.com
Daily updates on the latest technology terms |August 16, 2017
unit testing

Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. Unit testing can be done manually but is often automated.

Unit testing is a component of test-driven development (TDD), a pragmatic methodology that takes a meticulous approach to building a product by means of continual testing and revision. Test-driven development requires that developers first write failing unit tests. Then they write code and refactor the application until the test passes. TDD typically results in an explicit and predictable code base.

Unit testing involves only those characteristics that are vital to the performance of the unit under test. This encourages developers to modify the source code without immediate concerns about how such changes might affect the functioning of other units or the program as a whole. Once all of the units in a program have been found to be working in the most efficient and error-free manner possible, larger components of the program can be evaluated by means of integration testing.

Unit testing does have steep learning curve. The development team needs to learn what unit testing is, how to unit test, what to unit test and how to use automated software tools to facilitate the process on an on-going basis. The great benefit to unit testing is that the earlier a problem is identified, the fewer compound errors occur. A compound error is one that doesn't seem to break anything at first, but eventually conflicts with something down the line and results in a problem.

Quote of the Day

"The number of combinations one has to test for even the most trivial of programs can be staggering. A pair of nested for loops, for example, can have unique test cases that number in the millions." - Matt Heusser

 

Related Terms and Tags
RELATED TERMS

test-driven development
integration testing
Extreme Programming
continuous delivery
automated software testing
walking skeleton

RELATED TAGS

Software testing and QA fundamentals
Software deployment management

 
Learning Center

Exploring the three major categories of application testing tools
Automation, code coverage, support and bug tracking are the four major categories of application testing tools. Learn about each and how they can help your organization.

DevOps quiz: What IT admins need to know
Considering more DevOps training? Take this DevOps quiz to test how knowledgeable you are about the essential tools and concepts.

What application testing tools does your enterprise need?
Automation, bug tracking and coverage are types of application testing tools that can aid an enterprise in testing efficiencies. These use cases also help determine that need.

A complete beginner's guide to DevOps best practices
New to DevOps? Expert Matthew Heusser offers an inside look at proven DevOps best practices including what not to do when getting started.

How do we make testing in DevOps happen correctly?
Testing in DevOps has to work, but it's tricky and not enough attention is being paid to it. Expert Gerie Owen highlights the challenges.

Stay In Touch
FOLLOW US
TwitterRSS
CONTACT AN EDITOR
For feedback about any of our articles or to send us your article ideas, please contact us at: mrouse@techtarget.com
About This E-Newsletter
This e-newsletter is published by the TechTarget network. To unsubscribe from Whatis.com, click here. Please note, this will not affect any other subscriptions you have signed up for.
TechTarget

TechTarget, Whatis, 275 Grove Street, Newton, MA 02466. Contact: webmaster@techtarget.com

Copyright 2016 TechTarget. All rights reserved.

No comments: