Skip to content

Simplify tests - #8

Merged
kaapstorm merged 4 commits into
mainfrom
tests
Jun 28, 2026
Merged

Simplify tests#8
kaapstorm merged 4 commits into
mainfrom
tests

Conversation

@kaapstorm

Copy link
Copy Markdown
Owner
  • Parametrizes homogeneous test groups in report and main.
  • Flattens single-method test classes into functions.
  • Uses __test_context__ for a shared temporary directory across the walk tests.

Collapse repeated single-assertion methods into @params:
- report.FormatResultLine, FormatResultLineColor, SummarizeTiming
- main.SupportsColor
DiscoverIntegration and the *MarkerConstant classes each held a single
trivial method; the class wrapper added no grouping benefit.
WalkDirectory and WalkDirectoryWithConfig created a TemporaryDirectory
per method; hoist it into a shared __test_context__ so each method
works against self.root.
@kaapstorm
kaapstorm merged commit b8dc1f5 into main Jun 28, 2026
6 checks passed
@kaapstorm
kaapstorm deleted the tests branch June 28, 2026 11:00
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