Introduction to Sandboxes

Learn about sandboxes and how they can reduce the time to run our test suite.

We'll cover the following

This chapter explains how to turbo-charge our test suite with sandboxes.

Sandboxes allow us to run our database tests concurrently while still keeping the database state of each test isolated from the others. There is a special pool of database connections with an ownership mechanism that allows us to control how connections are used and shared between processes. When we use a sandbox, it can significantly reduce the time it takes to run our test suite, so we should take advantage of this feature.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy