Skip to content

Expand the Testing section with practical guidelines#272

Merged
bbatsov merged 1 commit intomasterfrom
expand-testing-section
Feb 22, 2026
Merged

Expand the Testing section with practical guidelines#272
bbatsov merged 1 commit intomasterfrom
expand-testing-section

Conversation

@bbatsov
Copy link
Owner

@bbatsov bbatsov commented Feb 18, 2026

The Testing section had only 3 rules covering naming and directory structure — nothing about how to actually write good tests. This adds 6 new rules covering testing blocks, assertion messages, are for tabular tests, one-concept-per-deftest, with-redefs guidance, and exception testing with thrown?.

Add six new rules: use testing blocks for context, informative
assertion messages, are for tabular tests, one concept per deftest,
use with-redefs sparingly, and test expected exceptions. Brings the
section from 3 to 9 rules.
@bbatsov bbatsov force-pushed the expand-testing-section branch from 8439983 to 6d83c1c Compare February 22, 2026 09:52
@bbatsov bbatsov merged commit 178e892 into master Feb 22, 2026
2 checks passed
@bbatsov bbatsov deleted the expand-testing-section branch February 22, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant