Book Image

Rake Task Management Essentials

By : Andrey Koleshko
Book Image

Rake Task Management Essentials

By: Andrey Koleshko

Overview of this book

Table of Contents (18 chapters)
Rake Task Management Essentials
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Testing Rake Tasks

In this chapter, you will find information on how to test the rake tasks. It is important to understand that if you don't perform the tests, your rake tasks may fail just like a usual program. This is why the chapter starts by providing cases when the tasks fail, along with the reasons for their failure. Here, we will provide you with an example on how to test rake tasks using Ruby's embedded unit test framework—MiniTest.

In this chapter, we will cover the following topics:

  • The need for tests

  • Writing tests for rake tasks