Book Image

Learning Yii Testing

Book Image

Learning Yii Testing

Overview of this book

Table of Contents (16 chapters)
Learning Yii Testing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing testing for our purposes


Now that we have defined what to do, we need to discuss what kind of testing is needed and how much of it we want to test, based on the approaches we have outlined in Chapter 1, The Testing Mindset.

We're going to cover the following areas of testing:

  • Unit tests: This is to achieve isolated components testing

  • Integration tests: This is to ensure the various components are working well together

  • Acceptance tests: These are the most relevant types of tests from the user perspective, as they try to meet the right requirements defined at the beginning

Clearly, without knowing how our application is structured, it is hard to understand what kind of work we're going to endure.

So, before getting into defining the actual tests, we need to start breaking down our application into several modules, and overseeing the structure from an architectural point of view.

There are many ways to perform an architectural breakdown, some might be stricter and more detailed, using...