1. Tutorial
  2. Adding Elementary Tests

This tutorial will add a few common tests to our data set. To read more about Elementary’s suite of tests click here.

There are 3 models in our tutorial:

  • Customers
  • Orders
  • Returned Orders

In Elementary Data, tests are added to the schema.yml file. We will now navigate there and add tests for each of our models.

A schema.yml file that includes all the below tests can be found at the bottom of this page, so there is no need to manually add each test.

Copy the text below into your schema.yml file to add all of the above tests to our project:

You have now added Elementary tests to your project. Now let’s see how they are run and visualized.