Skip to content

Conversation

@DanTup
Copy link
Member

@DanTup DanTup commented Nov 20, 2025

Fixes #5707

@DanTup DanTup added this to the v3.124.0 milestone Nov 20, 2025
@DanTup DanTup added is bug fix in editor Relates to code editing or language features in debugging Relates to the debug adapter or process of running debug sessions in testing Relates to test execution of Dart/Flutter tests for end users in commands Relates to commands (usually invoked from the command Palette) labels Nov 20, 2025
@DanTup DanTup requested a review from Copilot November 20, 2025 15:36
@DanTup
Copy link
Member Author

DanTup commented Nov 20, 2025

@codex review
/gemini review

@gemini-code-assist
Copy link

Hello @DanTup! I noticed you used /gemini review. This command is typically used to initiate a new code review for the pull request. I am ready to perform a review if you'd like me to proceed. Please note that @codex review is not a command for me, gemini-code-assist.

This comment was marked as resolved.

@DanTup
Copy link
Member Author

DanTup commented Nov 20, 2025

/gemini review

Copy link

@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 adds support for running tests defined outside of the main function from CodeLenses. The changes involve modifying the TestOutlineVisitor to track whether it's inside a top-level main function and adjusting the test name regex generation to not anchor to the start for tests outside main. A new test case is added to verify this functionality. The implementation is solid, but I found one potential issue where the check for the main function could be more specific to avoid matching other top-level elements with the same name.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@DanTup DanTup merged commit 41eb30a into master Nov 20, 2025
16 checks passed
@DanTup DanTup deleted the handle-test-codelens-outside-main branch November 20, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in commands Relates to commands (usually invoked from the command Palette) in debugging Relates to the debug adapter or process of running debug sessions in editor Relates to code editing or language features in testing Relates to test execution of Dart/Flutter tests for end users is bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"No tests match regular expression ..." when running tests in reusable test suite functions

2 participants