Информатика и ЭВМ
  • формат pdf
  • размер 5.16 МБ
  • добавлен 22 ноября 2011 г.
Meszaros G. xUnit Test Patterns Refactoring Test Code
Hardcover: 833 pages
Publisher: Addison-Wesley (May 31, 2007)
Language: English
ISBN-10: 0131495054
ISBN-13: 978-0131495050

Automated testing is a coerstone of agile development. An effective testing strategy will deliver new functionality more aggressively, accelerate user feedback, and improve quality. However, for many developers, creating effective automated tests is a unique and unfamiliar challenge.
xUnit Test Pattes is the definitive guide to writing automated tests using xUnit, the most popular unit testing framework in use today. Agile coach and test automation expert Gerard Meszaros describes 68 proven pattes for making tests easier to write, understand, and maintain. He then shows you how to make them more robust and repeatable-and far more cost-effective.
Loaded with information, this book feels like three books in one. The first part is a detailed tutorial on test automation that covers everything from test strategy to in-depth test coding. The second part, a catalog of 18 frequently encountered "test smells," provides trouble-shooting guidelines to help you determine the root cause of problems and the most applicable pattes. The third part contains detailed descriptions of each patte, including refactoring instructions illustrated by extensive code samples in multiple programming languages.

Topics covered include

Writing better tests-and writing them faster
The four phases of automated tests: fixture setup, exercising the system under test, result verification, and fixture teardown
Improving test coverage by isolating software from its environment using Test Stubs and Mock Objects
Designing software for greater testability
Using test "smells" (including code smells, behavior smells, and project smells) to spot problems and know when and how to eliminate them
Refactoring tests for greater simplicity, robustness, and execution speed
This book will benefit developers, managers, and testers working with any agile or conventional development process, whether doing test-driven development or writing the tests last. While the pattes and smells are especially applicable to all members of the xUnit family, they also apply to next-generation behavior-driven development frameworks such as RSpec and JBehave and to other kinds of test automation tools, including recorded test tools and data-driven test tools such as Fit and FitNesse.

Visual Summary of the Patte Language
Foreword
Preface
Acknowledgments
Introduction
Refactoring a Test
PART I: The Narratives
Chapter 1 A Brief Tour
Chapter 2 Test Smells
Chapter 3 Goals of Test Automation
Chapter 4 Philosophy of Test Automation
Chapter 5 Principles of Test Automation
Chapter 6 Test Automation Strategy
Chapter 7 xUnit Basics
Chapter 8 Transient Fixture Management
Chapter 9 Persistent Fixture Management
Chapter 10 Result Verification
Chapter 11 Using Test Doubles
Chapter 12 Organizing Our Tests
Chapter 13 Testing with Databases
Chapter 14 A Roadmap to Effective Test Automation
PART II: The Test Smells
Chapter 15 Code Smells
Chapter 16 Behavior Smells
Chapter 17 Project Smells
PART III: The Pattes
Chapter 18 Test Strategy Pattes
Chapter 19 xUnit Basics Pattes
Chapter 20 Fixture Setup Pattes
Chapter 21 Result Verification Pattes
Chapter 22 Fixture Teardown Pattes
Chapter 23 Test Double Pattes
Chapter 24 Test Organization Pattes
Chapter 25 Database Pattes
Chapter 26 Design-for-Testability Pattes
Chapter 27 Value Pattes
PART IV: Appendixes
Appendix A Test Refactorings
Appendix B xUnit Terminology
Appendix C xUnit Family Members
Appendix D Tools
Appendix E Goals and Principles
Appendix F Smells, Aliases, and Causes
Appendix G Pattes, Aliases, and Variations
Glossary
References
Index
Читать онлайн
Смотрите также

Савин Роман. Тестирование dot com

  • формат pdf
  • размер 5.26 МБ
  • добавлен 07 октября 2010 г.
Очень интересная книга о тестировании ПО. С примерами из жизни и юмором. Очень легко читается, а главное запоминается. Что такое баг. Цель тестирования DECODED. Искусство создания тест-кейсов. Цикл разработки ПО. Идея. Разработка дизайна продукта и создание спека. Кодирование. Исполнение тестирования и ремонт багов. Релиз. Большая картина цикла разработки ПО. Цикл тестирования ПО. Изучение и анализ предмета тестирования. Планирование тестирования...

Слукин Сергей. Введение в тестирование программного обеспечения

  • формат pdf
  • размер 5.64 МБ
  • добавлен 23 сентября 2011 г.
Авторский курс, 11.03.2009, 134 стр. Введение в тестирование программного обеспечения Методы и виды тестирования Тестовая документация. Общие сведения Тестовые требования Тестовые примеры (Test Case) Тестовые планы (Test Plan) Отчеты о прохождении тестов Покрытие программного кода Тестирование пользовательского интерфейса Тестирование объектно?ориентированного программного обеспечения Регрессионное тестирование

Broekman Bart, Notenboom Edwin. Testing Embedded Software

  • формат pdf
  • размер 1.94 МБ
  • добавлен 07 февраля 2011 г.
Typeset by Pantek Arts Ltd, Maidstone, Kent. Printed and bound in Great Britain by Biddles Ltd, Guildford and King’s Lynn. Contents. Foreword. Preface. Acknowledgments. ntroduction. Fundamentals. Aims of testing. What is an embedded system? . Approach to the testing of embedded systems. The TEmb method. Overview. TEmb generic. Mechanism for assembling the dedicated test approach. Lifecycle. Multiple V-model. ntroduction. Test activities in the m...

Copeland Lee. A Practitioner's Guide to Software Test Design

  • формат chm
  • размер 7.17 МБ
  • добавлен 06 января 2011 г.
The book focuses only on software test design, not related subjects such as test planning, test management, test team development, etc. While those are important in software testing, they have often overshadowed what testers really need—the more practical aspects of testing, specifically test case design. Other excellent books can guide you through the overall process of software testing. One of my favorites is Systematic Software Testing by Rick...

Dooley J. Software Development and Professional Practice

  • формат pdf
  • размер 6 МБ
  • добавлен 16 августа 2011 г.
Apress, 2011. - 242 p. Software Development and Professional Practice reveals how to design and code great software. What factors do you take into account? What makes a good design? What methods and processes are out there for designing software? Is designing small programs different than designing large ones? How can you tell a good design from a bad one? You'll learn the principles of good software design, and how to turn those principles back...

Hutcheson M.L. Software testing fundamentals: methods and metrics

  • формат chm
  • размер 13.3 МБ
  • добавлен 27 декабря 2011 г.
John Wiley & Sons, 2003. - 408 pages. A software tester's survival guide from a leading expert in the field. Contents: The State of Software Testing Today Maintaining Quality Assurance in Today's Software Testing Environment Approaches to Managing Software Testing The Most Important Tests (MITs) Method Fundamental Metrics for Software Testing The Test Inventory How to Build a Test Inventory Tools to Automate the Test Inventory Risk Analysis...

Jalote P. An Integrated Approach to Software Engineering

  • формат pdf
  • размер 7.7 МБ
  • добавлен 10 ноября 2011 г.
Издательство Springer, 2005, -571 pp. Third Edition An introductory course in Software Engineering remains one of the hardest subjects to teach. Much of the difficulty stems from the fact that Software Engineering is a very wide field which includes a wide range of topics. Consequently, what should be the focus of an introductory course remains a challenge with many possible viewpoints. This third edition of the book approaches the problem from...

Lasater C.G. Design Patterns

  • формат pdf
  • размер 1.93 МБ
  • добавлен 07 ноября 2011 г.
Издательство Wordware Publishing, 2006, -471 pp. Design patterns have been around for quite a few years. They were originally created by the Gang of Four (Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides), which is responsible for formalizing the accepted design patterns we use today. Their use, while questioned and argued over by different programming schools of thought, has generally been accepted as "best practices" within the dev...

Martin R. The Clean Coder A Code of Conduct for Professional Programmers

  • формат pdf
  • размер 6.06 МБ
  • добавлен 01 декабря 2011 г.
Paperback: 256 pages Publisher: Prentice Hall; 1 edition (May 23, 2011) Language: English ISBN-10: 0137081073 ISBN-13: 978-0137081073 (рус. изд. Идеальный программист. Как стать профессионалом разработки ПО) Programmers who endure and succeed amidst swirling uncertainty and nonstop pressure share a common attribute: They care deeply about the practice of creating software. They treat it as a craft. They are professionals. In The Clean Coder: A Co...

Myers, Glenford J. The Art of Software Testing

  • формат pdf
  • размер 3.52 МБ
  • добавлен 17 октября 2011 г.
Published by by John Wiley & Sons, Inc., Hoboken, New Jersey © 2004. 2rd edition. ISBN: 0-471-46912-2, 151 pages. This long-awaited revision of a bestseller provides a practical discussion of the nature and aims of software testing. You'll find the latest methodologies for the design of effective test cases, including information on psychological and economic principles, managerial aspects, test tools, high-order testing, code inspections, a...