> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Test Cases to an Entity

> Add data quality test cases to a database entity in Collate and schedule their execution.

# Adding Test Cases to an Entity

Test cases are actual tests that run against a data asset. Define the execution time and logic of these tests here.
**Note**: Make sure you have the right permission in Collate to create a test.

## Step 1: Creating a Test Case

Navigate to the entity you want to add a test to (Collate currently supports quality tests only for database entities). Go to `Data Observability` tab. From there, click on the `Add Test` button in the upper right corner and select the type of test you want to implement

![Write your first test](https://mintcdn.com/collatedocs/hzvCWOBUMdmV543T/public/images/features/ingestion/workflows/data-quality/add-test-case.png?fit=max\&auto=format\&n=hzvCWOBUMdmV543T\&q=85\&s=d559d10bb4d0b7e5a6ce59681aea2d74)

## Step 2: Select the Test Definition

Select the type of test you want to run and set the parameters (if any) for your test case. If you have selected a `column` test, you will need to select which column you want to execute your test against. Give it a name and then submit it.

**Note**: If you have a profiler workflow running, you will be able to visualize some context around your column or table data.

![Write your first test](https://mintcdn.com/collatedocs/hzvCWOBUMdmV543T/public/images/features/ingestion/workflows/data-quality/add-test-defintion.png?fit=max\&auto=format\&n=hzvCWOBUMdmV543T\&q=85\&s=6bbebdfe6e858533e6bd1e34e76e4a8d)

## Step 3: Set an Execution Schedule (Optional)

Starting in 1.6 it is possible to create multiple pipeline for your test cases. To execute all test cases within the same pipeline, toggle on `Select All` on the ingestion configuration page. Otherwise, select the specific test cases the pipeline will execute. The second option lets you orchestrate pipelines at different times for different test cases.

![Create an ingestion pipeline](https://mintcdn.com/collatedocs/hzvCWOBUMdmV543T/public/images/features/ingestion/workflows/data-quality/add-ingestion.png?fit=max\&auto=format\&n=hzvCWOBUMdmV543T\&q=85\&s=cef959d9eda053fa03ad24c9399fb060)

![Schedule you test execution](https://mintcdn.com/collatedocs/hzvCWOBUMdmV543T/public/images/features/ingestion/workflows/data-quality/ingestion-page.png?fit=max\&auto=format\&n=hzvCWOBUMdmV543T\&q=85\&s=4129570a3558664b2f384d6b122a51b8)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.