Skip to content

test cleanup#96

Merged
kevmoo merged 4 commits intomasterfrom
test_cleanup
Feb 5, 2026
Merged

test cleanup#96
kevmoo merged 4 commits intomasterfrom
test_cleanup

Conversation

@kevmoo
Copy link
Copy Markdown
Owner

@kevmoo kevmoo commented Feb 5, 2026

  • tests: matcher cleanup
  • checks migration
  • Dart 3.9, format

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @kevmoo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on modernizing the project's development and testing infrastructure. The primary change involves a comprehensive migration of test assertions to the checks package, which offers a more expressive and type-safe way to write tests. Alongside this, the project's minimum Dart SDK version has been updated to 3.9, and several package dependencies have been refreshed to their latest versions. These changes collectively aim to improve code quality, maintainability, and align the project with current Dart best practices.

Highlights

  • Test Assertion Migration: The project's test suite has been migrated from the traditional expect assertions to the more modern and fluent checks package, improving test readability and composability across multiple test files.
  • Dart SDK Requirement Update: The minimum required Dart SDK version has been updated to 3.9.0, ensuring compatibility with the latest language features and tooling.
  • Dependency Updates: Key dependencies, including path and test, have been updated to their latest compatible versions, and the new checks package has been added to dev dependencies.
  • Code Formatting Improvements: Various files have received minor formatting adjustments to enhance code consistency and readability, particularly in multi-line function calls and argument lists.
Changelog
  • CHANGELOG.md
    • Updated version to 2.3.3-wip.
    • Added a requirement for Dart 3.9.
  • lib/src/commit.dart
    • Applied minor formatting to a ternary operator for improved readability.
  • lib/src/git_dir.dart
    • Applied consistent formatting to assert statements and multi-line function calls.
    • Refactored Tag.parseCatFile call for conciseness.
    • Formatted runCommand arguments for improved readability.
    • Formatted ArgumentError messages for better line wrapping.
  • pubspec.yaml
    • Updated package version to 2.3.3-wip.
    • Increased Dart SDK constraint to ^3.9.0.
    • Updated path dependency to ^1.8.0.
    • Added checks: ^0.3.1 to dev_dependencies.
    • Updated test dev dependency to ^1.24.0.
  • test/git_dir_test.dart
    • Migrated test assertions from package:test's expect to package:checks.
    • Updated package:test import to package:test/scaffolding.dart.
  • test/git_test.dart
    • Migrated test assertions from package:test's expect to package:checks.
    • Updated package:test import to package:test/scaffolding.dart.
  • test/parse_test.dart
    • Migrated test assertions from package:test's expect to package:checks.
    • Updated package:test import to package:test/scaffolding.dart.
  • test/readme_test.dart
    • Migrated test assertions from package:test's expect to package:checks.
    • Updated package:test import to package:test/scaffolding.dart.
  • test/tag_test.dart
    • Migrated test assertions from package:test's expect to package:checks.
    • Updated package:test import to package:test/scaffolding.dart.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/ci.yml
Activity
  • The pull request was created to address test modernization, Dart SDK compatibility, and dependency updates.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

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

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 primarily focuses on cleaning up tests by migrating from expect to the checks package, updating the Dart SDK requirement to 3.9, and applying general code formatting. The changes are mostly well-executed. However, I've identified a couple of instances in the test suite where asynchronous operations in tests are not being awaited correctly after the migration. This could lead to incorrect test results and unhandled asynchronous errors. I've provided specific comments and suggestions to address these issues. The rest of the changes, including dependency updates and formatting, look good.

Comment thread test/git_dir_test.dart Outdated
Comment thread test/git_dir_test.dart Outdated
@kevmoo
Copy link
Copy Markdown
Owner Author

kevmoo commented Feb 5, 2026

/gemini review

Copy link
Copy Markdown

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

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 is a solid piece of work, primarily focused on modernizing the project. The migration of tests to the checks package is well-executed and significantly improves the readability and maintainability of the test suite. The dependency updates and code formatting are also welcome improvements. I've found one minor opportunity to make a test assertion even more idiomatic and readable, but overall the changes are excellent.

Comment thread test/git_dir_test.dart
@kevmoo kevmoo merged commit 4578a41 into master Feb 5, 2026
10 checks passed
@kevmoo kevmoo deleted the test_cleanup branch February 5, 2026 07:43
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