Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests.md #272

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/docs/building-a-dbt-project/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ title: "Tests"
Tests are assertions you make about your models and other resources in your dbt project (e.g. sources, seeds and snapshots). When you run `dbt test`, dbt will tell you if each test in your project passes or fails.

There are two type of tests:
* **schema tests** (more common): applied in YAML, returns the number of records that _do not_ pass an assertion — when this number is 0, all records pass, therefore, your test passes
* **data tests**: specific queries that return 0 records
* **schema tests** (more common): applied via YAML, a query that should return _the number 0_ for a test to pass and any other number for a test to _do not_ pass an assertion.
* **data tests**: applied via a model (.sql file), a query that should return _0 records_ test to pass and >0 records for a test to _do not_ pass an assertion.

Defining tests is a great way to confirm that your code is working correctly, and helps prevent regressions when your code changes.

Expand Down