Skip to content

docs: add explicit functional vs unit test scope rules to AGENTS.md#1422

Merged
sd-db merged 1 commit into
mainfrom
sd-db/docs/agents-md-test-scope-rules
Apr 27, 2026
Merged

docs: add explicit functional vs unit test scope rules to AGENTS.md#1422
sd-db merged 1 commit into
mainfrom
sd-db/docs/agents-md-test-scope-rules

Conversation

@sd-db
Copy link
Copy Markdown
Collaborator

@sd-db sd-db commented Apr 23, 2026

Makes the unit vs functional test split explicit in AGENTS.md. The current section distinguishes the two by where they live and how they run, but the rule for what each type should assert was conveyed only through examples. A contributor could reasonably put specific-warning or compiled-SQL assertions in a functional test without tripping any review signal (surfaced in #1421 review).

Adds two short paragraphs: the principle (functional = outcomes, unit = specifics) and a note that trivial macro additions do not need a test.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

Docs-only change; CHANGELOG entry intentionally omitted.

@sd-db sd-db force-pushed the sd-db/docs/agents-md-test-scope-rules branch 2 times, most recently from da91ceb to f10cdfa Compare April 23, 2026 13:46
The split was conveyed only through examples (functional tests assert
row counts; macro unit tests use assert_sql_equal), and a contributor
could reasonably put specific-warning or compiled-SQL assertions in a
functional test without tripping any review signal. Adds three short
sentences stating the principle (functional = outcomes, unit = specifics),
the litmus (would the assertion survive a future release that ships the
same behavior via different SQL?), and a note that trivial macro
additions do not need a test.

Co-authored-by: Isaac
@sd-db sd-db force-pushed the sd-db/docs/agents-md-test-scope-rules branch from f10cdfa to 15822a2 Compare April 23, 2026 13:47
@sd-db sd-db self-assigned this Apr 23, 2026
@sd-db sd-db merged commit a85923b into main Apr 27, 2026
1 check passed
@sd-db sd-db deleted the sd-db/docs/agents-md-test-scope-rules branch April 27, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants