Refactor oversized test files into focused, maintainable modules#5415
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Split oversized test files for better maintainability
Refactor oversized test files into focused, maintainable modules
Dec 3, 2025
Collaborator
|
@copilot format and lint |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split oversized test files to improve maintainability ✅
Successfully split all three large test files into smaller, focused files that are easier to navigate and maintain. All tests pass after the split.
Completed:
Split
pkg/workflow/compile_test.go(1,786 lines → 4 files, all <800 lines)compile_outputs_issue_test.go- Issue output tests (280 lines)compile_outputs_comment_test.go- Comment output tests (380 lines)compile_outputs_pr_test.go- Pull request output tests (433 lines)compile_outputs_label_test.go- Label output tests (722 lines)Split
pkg/parser/frontmatter_test.go(2,123 lines → 4 files, all <815 lines)frontmatter_extraction_test.go- Content extraction tests (423 lines)frontmatter_includes_test.go- Include/import tests (658 lines)frontmatter_merge_test.go- Tools/config merging tests (267 lines)frontmatter_utils_test.go- Utility/validation tests (813 lines)Split
pkg/workflow/compiler_test.go(6,289 lines → 16 files + helpers, all <900 lines)compiler_compilation_test.go- Basic compilation (323 lines)compiler_validation_test.go- Validation tests (754 lines)compiler_yaml_test.go- YAML processing (331 lines)compiler_events_test.go- Event/trigger tests (476 lines)compiler_reactions_test.go- AI reactions (483 lines)compiler_reactions_numeric_test.go- Numeric reactions (182 lines)compiler_draft_test.go- Draft PR filters (313 lines)compiler_forks_test.go- Forks filters (622 lines)compiler_mcp_test.go- MCP server config (895 lines)compiler_permissions_test.go- Permissions/network (302 lines)compiler_cache_test.go- Cache support (427 lines)compiler_customsteps_test.go- Custom steps (226 lines)compiler_poststeps_test.go- Post-steps generation (434 lines)compiler_artifacts_test.go- Artifact uploads (311 lines)compiler_test_helpers.go- Shared test helpers (66 lines)Code formatted with
make fmtCode linted with
make lint- all checks pass ✓All tests pass:
make test-unit✓Impact:
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.