Skip to content

Commit

Permalink
Missed one!
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes committed Oct 22, 2021
1 parent 71d453a commit 70c0819
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions website/docs/reference/node-selection/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,33 @@ The `test_name` method is used to select tests based on the name of the generic
that defines it. For more information about how generic tests are defined, read about
[tests](building-a-dbt-project/tests).

```bash
$ dbt test --select test_name:unique # run all instances of the `unique` test
$ dbt test --select test_name:equality # run all instances of the `dbt_utils.equality` test
$ dbt test --select test_name:range_min_max # run all instances of a custom schema test defined in the local project, `range_min_max`
```
<Tabs
defaultValue="modern"
values={[
{ label: 'v0.21.0 and later', value: 'modern', },
{ label: 'v0.20.x and earlier', value: 'legacy', }
]
}>
<TabItem value="modern">

```bash
$ dbt test --select test_name:unique # run all instances of the `unique` test
$ dbt test --select test_name:equality # run all instances of the `dbt_utils.equality` test
$ dbt test --select test_name:range_min_max # run all instances of a custom schema test defined in the local project, `range_min_max`
```

</TabItem>
<TabItem value="legacy">


```bash
$ dbt test --models test_name:unique # run all instances of the `unique` test
$ dbt test --models test_name:equality # run all instances of the `dbt_utils.equality` test
$ dbt test --models test_name:range_min_max # run all instances of a custom schema test defined in the local project, `range_min_max`
```

</TabItem>
</Tabs>

### The "state" method
<Changelog>
Expand Down

0 comments on commit 70c0819

Please sign in to comment.