Book Image

Grunt Cookbook

By : Jurie-Jan Botha
Book Image

Grunt Cookbook

By: Jurie-Jan Botha

Overview of this book

<p>A web application can quickly turn into a complex orchestration of many smaller components, each one requiring its own bit of maintenance. Grunt allows you to automate all the repetitive tasks required to get everything working together by using JavaScript, the most popular programming language.</p> <p>Grunt Cookbook offers a host of easy-to-follow recipes for automating repetitive tasks in your web application's development, management, and deployment processes. This book will introduce you to methods that can be used to automate basic processes and your favorite tools. By following the recipes, you will soon be comfortable using Grunt to perform a wide array of advanced tasks in a range of different scenarios.</p>
Table of Contents (17 chapters)
Grunt Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


As the size and complexity of a software unit increases, it can become quite time-consuming to ensure that it behaves according to its specifications each time it is altered. For this purpose, automated testing becomes invaluable by increasing the overall reliability and quality of a software unit, without constant manual testing.

There are various levels of testing that a project can implement, ranging from unit tests at the function or class level, up to integration tests that make use of an entire application stack. Most testing frameworks provide for this entire range, perhaps just with the addition of a few tools.

Also worth mentioning in relation to testing is the practice of test-driven development, in which a developer first creates (initially failing) a test case for a desired improvement or a new feature, and then does the minimum amount of development to make the test case pass. To finish it off, the developer will then review the written code and refactor it to acceptable...