# dbt Tests

dbt Tests are now going to be ingested into Select Star!

{% hint style="info" %}
To add dbt tests into your existing SelectStar organization, you will need to either update permissions (dbt Cloud) or add a `run_results.json` (dbt Core)
{% endhint %}

To see how to update your config:

{% content-ref url="/pages/MQoeDOVEP4yrkHgXgTM1" %}
[dbt Cloud](/integrations/dbt/dbt-cloud.md)
{% endcontent-ref %}

{% content-ref url="/pages/6HDe0KrWKWcvNOENCtHe" %}
[dbt Core (open source)](/integrations/dbt/dbt-core-open-source.md)
{% endcontent-ref %}

Once updates, to find dbt tests, go to the dbt tests page from the hierarchy

<div align="left"><figure><img src="/files/FzmLa9f4dz9wwsHiIiCy" alt="" width="292"><figcaption><p>dbt tests in hierarchy</p></figcaption></figure></div>

All tests that have run in the dbt data source should be available in the dbt tests page.

<figure><img src="/files/oHQQ8ZJkOrBXX3caSyD0" alt=""><figcaption><p>Full dbt Tests Page</p></figcaption></figure>

To filter for failed tests, click on one of the tabs on top:

<figure><img src="/files/q1Eoz191ICThzNDe84YD" alt=""><figcaption><p>Failed dbt tests</p></figcaption></figure>

To view dbt tests that have run for a particular model or table, we can go to the newly added tests tab in each table/model page:

<figure><img src="/files/OO9VcSmqHYqPbAyB53Ob" alt=""><figcaption><p>Test that have run for view model.</p></figcaption></figure>

Click on any of the tests to drill down even further to see information such as all test runs and errors from the latest test run and the last run date.

<figure><img src="/files/paKBIuRjS0o8idnU61AA" alt=""><figcaption><p>Failed test ingested from dbt</p></figcaption></figure>

You can each see the source of each test and copy this information really quickly:

<figure><img src="/files/l612RPaivUyo5cJRj2A4" alt=""><figcaption><p>Source of test not_null</p></figcaption></figure>

dbt tests are also searchable like any other asset type in Select Star

<figure><img src="/files/sTbfSWfIxSX08QvsPKX6" alt=""><figcaption><p>Search by the name of the dbt test</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.selectstar.com/integrations/dbt/dbt-tests-beta.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
