Skip to content

test: migrate test suite to package:checks#201

Merged
kevmoo merged 1 commit into
masterfrom
migrate_to_checks
Jun 9, 2026
Merged

test: migrate test suite to package:checks#201
kevmoo merged 1 commit into
masterfrom
migrate_to_checks

Conversation

@kevmoo

@kevmoo kevmoo commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Migrates the test suite from package:matcher to package:checks.

Verified 100% clean static analysis (dart analyze) and all tests passing (dart test).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the test assertions in the build_cli package from the traditional expect syntax to the checks library. This includes adding checks to pubspec.yaml and updating various integration tests. The review feedback suggests improving assertion clarity and error messages by refactoring a null-safe property check, removing a redundant null check on a non-nullable list, and maintaining type consistency by comparing a double value with a double literal instead of an integer.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread build_cli/test/command_runner_integration_test.dart Outdated
Comment thread build_cli/test/pubviz_integration_test.dart
Comment thread build_cli/test/pubviz_integration_test.dart
- Add dev_dependency on package:checks.
- Refactor legacy expect() assertions to check() in all integration tests.
- Enforce strict type-safety and nullability assertions.
@kevmoo kevmoo force-pushed the migrate_to_checks branch from 8c5c892 to 53ebf71 Compare June 9, 2026 20:25
@kevmoo

kevmoo commented Jun 9, 2026

Copy link
Copy Markdown
Owner Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the test suite of build_cli from using package:test/test.dart assertions to package:checks/checks.dart and package:test/scaffolding.dart. Feedback on the changes suggests removing a redundant .isNotNull() check on a non-nullable list property (options.ignorePackages) in pubviz_integration_test.dart.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread build_cli/test/pubviz_integration_test.dart
@kevmoo

kevmoo commented Jun 9, 2026

Copy link
Copy Markdown
Owner Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the test suite in build_cli from using package:test/test.dart and expect assertions to using package:test/scaffolding.dart and package:checks/checks.dart with check assertions. The checks package has been added as a dev dependency in pubspec.yaml. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@kevmoo kevmoo merged commit 75ff1f9 into master Jun 9, 2026
12 checks passed
@kevmoo kevmoo deleted the migrate_to_checks branch June 9, 2026 20:56
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