Gartner Research

Produce Better Software by Using a Layered Testing Strategy

Published: 07 January 2014

ID: G00255138

Analyst(s): Sean Kenefick

Summary

Development teams aiming to get better-quality products to market faster must shift testing to earlier in the development process by maximizing and reusing isolation tests, minimizing the use of hard-to-maintain GUI tests, and exploiting mock and service virtualization technologies.

Table Of Contents

Summary of Findings

Analysis

  • A Layered Approach to Testing
  • Individually Testing Application Layers
    • Much Ado About Nothing — The Benefits of Isolation Testing
    • Class Object Layer Testing
    • Subsystem Groupings Layer Testing
    • System Layer Testing
    • To Mock or Not to Mock
  • Strengths
  • Weaknesses
  • Use a Layered Reuse Approach to Automated Testing and Execute Tests Continuously
  • Less Automated GUI Testing, More Automated Business Logic Testing
  • Define and Honor Unit Test Coverage Criteria
  • Educate Developers on Unit Test and Dependency Injection Coding Patterns
  • Use Mocking for Isolation Testing and Hard-to-Access Objects
  • Use Virtualized Data Solutions to Simulate Real-Life Data

Gartner Recommended Reading

©2021 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates. This publication may not be reproduced or distributed in any form without Gartner’s prior written permission. It consists of the opinions of Gartner’s research organization, which should not be construed as statements of fact. While the information contained in this publication has been obtained from sources believed to be reliable, Gartner disclaims all warranties as to the accuracy, completeness or adequacy of such information. Although Gartner research may address legal and financial issues, Gartner does not provide legal or investment advice and its research should not be construed or used as such. Your access and use of this publication are governed by Gartner’s Usage Policy. Gartner prides itself on its reputation for independence and objectivity. Its research is produced independently by its research organization without input or influence from any third party. For further information, see Guiding Principles on Independence and Objectivity.

Already have a Gartner Account?

Become a client

Learn how to access this content as a Gartner client.