-
Notifications
You must be signed in to change notification settings - Fork 7
test: Add comprehensive tests for luthor_generator #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
|
@copilot Make sure you format all files. Also |
- Format all test files - Fix import ordering in generator_test.dart - Suppress invalid_annotation_target warning for @jsonkey on freezed params - Fix avoid_dynamic_calls warnings in custom_validator_test.dart - Update string_validations.dart to only use raw strings when needed (contains backslashes) - Regenerate test fixtures and example files - All 271 tests passing, dpk analyze shows no issues Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
... Fixed in commit b52e0c9. All files formatted,
|
packages/luthor_generator/build.yaml
Outdated
| builder_factories: ["luthorBuilder"] | ||
| build_extensions: { ".dart": [".luthor.g.part"] } | ||
| auto_apply: dependents | ||
| auto_apply: all_packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change may have been unintentional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're correct - reverted to auto_apply: dependents in commit b8e1267. The targets section ensures the builder still runs on test fixtures while keeping the proper production setting.
The change to auto_apply: all_packages was unintentional. Reverted to dependents which is the correct setting for production use. The targets section ensures the builder still runs on test fixtures when needed. All 271 tests passing, no analyzer issues. Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
.github/workflows/unit_tests.yml
Outdated
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: ./.github/actions/setup-luthor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give this a name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added name "Build generator test fixtures" in commit 93ebb0a.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uses: ./.github/actions/setup-luthor
@copilot I want a name to the above like
| - uses: ./.github/actions/setup-luthor | |
| name: Setup project | |
| uses: ./.github/actions/setup-luthor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot See above comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added "Setup project" name to the step in commit d984f2c.
…orkflow - Add explicit builder configuration in targets section to enable luthor generator to run on its own test fixtures even with auto_apply: dependents - Refactor CI workflow to use 'dpk run build' instead of direct build_runner command - Step now has proper name: "Build generator test fixtures" This fixes the CI error where luthor generator wasn't running on test fixtures. All 271 tests passing, no analyzer issues. Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Added "Setup project" name to the setup-luthor action step in the unit tests workflow for better readability and clarity in CI logs. Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Summary
Added comprehensive tests for
luthor_generatorpackage with 37 test cases. Fixed all formatting and analyzer warnings:All 271 tests passing with no analyzer issues.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.