E-Book Overview
Cucumber is a Behavior Driven Design framework, which allows a developer to write specification tests which then tests that the program works as it should. It is a different development paradigm, as it involves writing what the program should do first, then you develop until it passes the tests. Instant Cucumber BDD How-to will cover basics of Cucumber in a Behaviour Driven Development (BDD) style and explain the essence of Cucumber, describe how to write Cucumber features to drive development in a real project, and also describe many pro tips for writing good Cucumber features and steps. Cucumber is a very fun and cool tool for writing automated acceptance tests to support software development in a Behaviour Driven Development (BDD) style.
E-Book Content
www.it-ebooks.info
Instant Cucumber BDD How-to
A short and quick guide to mastering behavior-driven software development with Cucumber
Wayne Ye
BIRMINGHAM - MUMBAI
www.it-ebooks.info
Instant Cucumber BDD How-to Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2013
Production Reference: 1180413
Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78216-348-0 www.packtpub.com
www.it-ebooks.info
Credits Author
Project Coordinator
Wayne Ye
Joel Goveya
Reviewers
Proofreader
Ming Jin
Maria Gould
Cui Liqiang Graphics Ronak Dhruv
Acquisition Editor James Jones
Production Coordinator Commissioning Editor
Arvindkumar Gupta
Ameya Sawant Cover Work Technical Editor
Arvindkumar Gupta
Veronica Fernandes Cover image Aditi Gajjar
www.it-ebooks.info
About the Author Wayne Ye is a software developer, tech lead, and also a geek. He has immersed himself
in software development for nearly 8 years, with an emphasis on C#/ASP.NET, Ruby on Rails, HTML5, JavaScript/jQuery, and nodejs. He is an expert in GOF Design Patterns, SOLID principles, MVC/MVVM, SOA, REST, and AOP. He strongly believes in and is a master of Agile, Scrum, and TDD/BDD, and hacks with Vim daily. He is a CodeProject MVP (2012) and a certified PMP. In his spare time, he writes tech/life blogs at WayneYe.com frequently, and spends some wonderful time with his dear wife and lovely son in Shanghai.
www.it-ebooks.info
About the Reviewers Ming Jin is a lead consultant at ThoughtWorks and chief editor at InfoQ. He has over 10
years of experience in the IT industry. He has worked on software for many companies from manufacturing ERP to online e-commerce. Besides that, he has also helped several large telecom and banking organizations adopt an agile and continuous delivery approach. Meanwhile, he has translated several books into Chinese, including Understanding Patterns of Project Behavior, ThoughtWorks Anthology, and Th