# Test Templates

Test templates are macros for basic test patterns recommended by Distributional. It allows the user to quickly create tests from a builder in the UI. Distributional provides five classes of Test Templates.

* [Single Run](../testing-strategies/test-that-a-given-distribution-has-certain-properties): These are parametric statistics of a column.
* [Similarity of Statistics](../testing-strategies/test-that-distributions-have-the-same-statistics): These test if the absolute difference of a statistic of a column between two runs is less than a threshold.
* [Similarity of Distributions](../testing-strategies/test-that-columns-are-similarly-distributed): These test if the column from two different runs are similarly distributed is using a nonparametric statistic.
* [Similarity of Results](../testing-strategies/test-that-specific-results-have-matching-behavior): These are tests on the row-wise absolute difference of result
* [Difference of Statistics](../testing-strategies/test-that-distributions-are-not-the-same): These tests the signed difference of a statistic of a column between two runs

## Creating Test from Test Templates

From the Test Configuration page, click the Test Template dropdown under My Tests.

<figure><img src="https://content.gitbook.com/content/z6EklLimWg9qh5eYpLkw/blobs/A83jQZB2LKh36hlmaHlg/Screenshot%202024-11-15%20at%2011.17.32%E2%80%AFAM.png" alt=""><figcaption></figcaption></figure>

Select from one of the five options and click `ADD TEST`. A Test Creation drawer will appear and the user can edit the statistic, column, and assertion that they desire. Note that each Test Template has a limited set of statistics that it supports.

<figure><img src="https://content.gitbook.com/content/z6EklLimWg9qh5eYpLkw/blobs/lkiJFGcHEODB85DYd0PJ/Screenshot%202024-11-15%20at%2011.17.52%E2%80%AFAM.png" alt=""><figcaption><p>Dropdown selector</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/z6EklLimWg9qh5eYpLkw/blobs/J95YYpVz2Km40wt03PYu/Screenshot%202024-11-15%20at%2011.18.47%E2%80%AFAM.png" alt=""><figcaption><p>Test Creation Drawer</p></figcaption></figure>
