Book Image

Building Web Applications with Flask

By : Italo M Campelo Maia, Jack Stouffer, Gareth Dwyer, Italo Maia
Book Image

Building Web Applications with Flask

By: Italo M Campelo Maia, Jack Stouffer, Gareth Dwyer, Italo Maia

Overview of this book

Table of Contents (17 chapters)
Building Web Applications with Flask
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

What kinds of test are there?


We want tests, and we want them now; but what kind of test do we want?

There are two major classifications for tests, based on how much access to the internal code you have: black-box and white-box tests.

Black-box tests are where the testers do not have knowledge of, and/or access to, the actual code he/she is testing. In these cases, the test consists of checking whether the system states before and after the code execution are as expected or whether the given output corresponds to the given input.

White-box tests are a little different as you will have access to the actual code internals that you're testing as well as the system expected states before and after code execution and the expected output for a given input. This kind of test has a stronger subjective goal, usually related to performance and software quality.

In this chapter, we will cover how to implement black-box tests as they are more accessible to others and easier to implement. On the other hand...