Skip to content

Commit

Permalink
Update data-tests.md
Browse files Browse the repository at this point in the history
add not about not adding semicolon to singular test per user feedback and testing
  • Loading branch information
mirnawong1 authored Nov 18, 2024
1 parent 486344b commit 729ab01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/docs/build/data-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ having total_amount < 0

</File>

The name of this test is the name of the file: `assert_total_payment_amount_is_positive`.
The name of this test is the name of the file: `assert_total_payment_amount_is_positive`.

Note, that you don't need to include semicolons (;) at the end of the SQL statement in your singular test files as it can cause your test to fail.

To add a description to a singular test in your project, add a `.yml` file to your `tests` directory, for example, `tests/schema.yml` with the following content:

Expand Down

0 comments on commit 729ab01

Please sign in to comment.