From e9f36d8bd54bacf37e943747090054234a9c9450 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 6 Jan 2024 10:49:32 -0600 Subject: [PATCH 1/3] fixed dbt merge and updated docs --- .github/workflows/dbt_test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/dbt_test.yml b/.github/workflows/dbt_test.yml index bac25bf..b2754a0 100644 --- a/.github/workflows/dbt_test.yml +++ b/.github/workflows/dbt_test.yml @@ -6,8 +6,6 @@ on: paths: - macros/ - dbt_project.yml - paths-ignore: - - 'integration_tests/docs/**' permissions: contents: read From 6038fbac62d1a5853c02af3a953cfc3b36a51828 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 6 Jan 2024 10:50:23 -0600 Subject: [PATCH 2/3] fixed dbt merge and updated docs --- .github/workflows/dbt_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dbt_test.yml b/.github/workflows/dbt_test.yml index b2754a0..1dc3274 100644 --- a/.github/workflows/dbt_test.yml +++ b/.github/workflows/dbt_test.yml @@ -6,6 +6,7 @@ on: paths: - macros/ - dbt_project.yml + - .github/workflows/dbt_test.yml permissions: contents: read From 30f4226260c67e6ff5ba173c4ce6804e35a7f3b5 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 6 Jan 2024 11:01:34 -0600 Subject: [PATCH 3/3] updated docs --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8d65727..70a299d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ # dbt-testgen +- [dbt-testgen](#dbt-testgen) +- [About](#about) +- [Install](#install) +- [Supported Databases](#supported-databases) +- [Test types](#test-types) +- [Usage](#usage) +- [Macros](#macros) + - [get\_test\_suggestions](#get_test_suggestions) + + # About `dbt-testgen` is a [dbt](https://github.com/dbt-labs/dbt) package that autogenerates dbt test YAML based on real data. @@ -35,13 +45,6 @@ dbt-testgen can generate these types of tests, using [built-in tests](https://do - [accepted_values](https://docs.getdbt.com/reference/resource-properties/data-tests#accepted_values) - [recency](https://github.com/dbt-labs/dbt-utils?tab=readme-ov-file#recency-source) - -# Macros -## get_test_suggestions -- [documentation](https://kgmcquate.github.io/dbt-testgen/#!/macro/macro.testgen.get_test_suggestions) -- [source](macros/test_aggregation/get_test_suggestions.sql) - - # Usage The DBT config YAML is generated by a Jinja macro, `get_test_suggestions`, which you can run like this: ```powershell @@ -227,3 +230,8 @@ seeds: - generated ``` + +# Macros +## get_test_suggestions +- [documentation](https://kgmcquate.github.io/dbt-testgen/#!/macro/macro.testgen.get_test_suggestions) +- [source](macros/test_aggregation/get_test_suggestions.sql) \ No newline at end of file