Skip to content

Conversation

@merschformann
Copy link
Member

Description

Adds a basic test for the flag parser used by the cli runner. The test is a leftover of some debug work, but it might be good to keep it to have some more coverage.

Changes

  • Adds basic flag parser unit test.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a basic unit test to verify that CLI flags are parsed into nested option structs by the run.FlagParser.

  • Introduces run/flagparser_test.go with a smoke test for iterations, duration, and a nested custom flag.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@cowanwalls cowanwalls left a comment

Choose a reason for hiding this comment

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

I have questions about this but don't want to block. Setting review as comment for now.

@merschformann
Copy link
Member Author

Sorry @cowanwalls , you were a bit faster than me fixing the cleanup. 😅

@merschformann merschformann merged commit 58e1c4b into develop Oct 3, 2025
29 checks passed
@merschformann merschformann deleted the merschformann/flag-parser-test branch October 3, 2025 18:51
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.

4 participants