Skip to content

test: expand core test coverage and dedupe mix_tailwinds helpers#959

Merged
leoafarias merged 3 commits into
mainfrom
chore/test-improvements
Jul 7, 2026
Merged

test: expand core test coverage and dedupe mix_tailwinds helpers#959
leoafarias merged 3 commits into
mainfrom
chore/test-improvements

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Related issue

N/A

Description

Expands unit test coverage across mix and mix_generator, and consolidates duplicated widget-testing boilerplate in mix_tailwinds into shared helpers.

Changes

  • Added new tests: Equatable (props/hash/diff), typed ContextVariant factories (brightness/breakpoint/not/responsive shorthands), StyleWidget default style resolution, and generator library_scope reference/visibility helpers.
  • Expanded existing tests: animation builder/driver, color token integration, variant mixin, widget state variant, generator smoke test, and mix_lint rule tests.
  • Extracted shared Flutter widget test helpers into packages/mix/test/helpers/testing_utils.dart.
  • Consolidated mix_tailwinds test boilerplate into a shared tailwinds_test_helpers.dart, rewriting div_and_span_test.dart, smoke_test.dart, and tw_config_test.dart to reuse it, and adding div_and_span_margin_test.dart.

Review Checklist

  • Testing: Test-only change; added/expanded unit and widget tests, no production code touched.
  • Breaking Changes: None — test files only.
  • Documentation Updates: N/A
  • Website Updates: N/A

Additional Information (optional)

None.

@leoafarias leoafarias merged commit fe834f6 into main Jul 7, 2026
4 checks passed
@leoafarias leoafarias deleted the chore/test-improvements branch July 7, 2026 21:30
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.

1 participant