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

# Tests configuration

> [tab] Elementary Cloud
>
> In Elementary Cloud you can configure your tests in the UI.
> This requires you to [connect a code repository](https://docs.elementary-data.com/cloud/integrations/code-repo/connect-code-repo.md) to your project.
> Configuring a test will open a pull request / merge request in your code repository.
>
> **Step 1 - Choose a target**
>
> ![](https://mintcdn.com/elementary/hSCs0_UCmzxCQWF5/pics/cloud/test_config_1.png?fit=max\&auto=format\&n=hSCs0_UCmzxCQWF5\&q=85\&s=ece01f6c39375b54829d456309061c83)
>
> **Step 2 - Choose a test**
>
> ![](https://mintcdn.com/elementary/hSCs0_UCmzxCQWF5/pics/cloud/test_config_2.png?fit=max\&auto=format\&n=hSCs0_UCmzxCQWF5\&q=85\&s=22f46c978ea335b29385395980a49a00)
>
> **Step 3 - Configure the test**
>
> ![](https://mintcdn.com/elementary/hSCs0_UCmzxCQWF5/pics/cloud/test_config_3.png?fit=max\&auto=format\&n=hSCs0_UCmzxCQWF5\&q=85\&s=961abd7befe7e9e28c3be90317e1dbcc)
>
> **Step 4 - Review and submit**
>
> ![](https://mintcdn.com/elementary/hSCs0_UCmzxCQWF5/pics/cloud/test_config_4.png?fit=max\&auto=format\&n=hSCs0_UCmzxCQWF5\&q=85\&s=3c35003c0b19766e8fbf243e4a121086)

> [tab] Elementary OSS
>
> The anomaly detection tests configuration is defined in `.yml` files in your dbt project, just like in native dbt tests.
>
> Elementary's dbt test configuration follows the same priorities and inheritance as dbt.
> The more granular and specific configuration overrides the less granular one.
>
> Elementary searches and prioritizes configuration in the following order:
>
> **For models tests:**
>
> 1. Test arguments.
> 2. Tests path configuration under `tests` key in `dbt_project.yml`.
> 3. Model configuration.
> 4. Path configuration under `models` key in `dbt_project.yml`.
> 5. Global vars in `dbt_project.yml`.
>
> **For sources tests:**
>
> 1. Test arguments.
> 2. Tests path configuration under `tests` key in `dbt_project.yml`.
> 3. Table configuration.
> 4. Source configuration.
> 5. Global vars in `dbt_project.yml`.


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