Conversation
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
… separation Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Already implemented in commit 68d6412. The Supported formats:
source: |
action.yml
.github/workflows/ci.yml
The shell script parses these formats and passes each source as a separate |
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
neilime
left a comment
There was a problem hiding this comment.
@copilot Factorize duplicate behavior between packages/cli/src/lib/usecases/generate-documentation.usecase.ts and packages/cli/src/lib/usecases/migrate-documentation.usecase.ts, into packages/cli/src/lib/usecases/abstract-multi-file.usecase.ts
Implemented in commit 564ab72. Factorized all duplicate behavior into Moved to base class:
Eliminated duplication:
Benefits:
|
Co-authored-by: neilime <314088+neilime@users.noreply.github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
564ab72 to
ab21dd1
Compare
…processing Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
Fixed in commit dd77f30. All 118 tests now passing. Root cause: Test mocks were missing the
Changes:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #186 +/- ##
==========================================
- Coverage 88.00% 85.57% -2.44%
==========================================
Files 76 78 +2
Lines 5144 5449 +305
Branches 1239 1263 +24
==========================================
+ Hits 4527 4663 +136
- Misses 609 778 +169
Partials 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
✅ All Tests Passing: Fixed Test Failures
Fixed all 28 failing tests by updating test mocks and expectations to match the refactored multi-file processing architecture.
Changes Made
1. Updated ReaderAdapterMockFactory
findResourcesmethod to the mock interface2. Removed Outdated Test File
generate-command-multifile.spec.ts- tests were based on old architecture where commands handled multi-file processing3. Updated Test Expectations in
generate-command.spec.tssourcefrom string to array (Commander.js variadic argument behavior)concurrency: 5to all test expectations (new parameter in input interface)Test Results
✅ All 118 tests passing
Root Cause
The refactoring moved multi-file processing logic from commands to usecases:
sourceas-is (string[]even for single files due to variadic args)ReaderAdapter.findResources()ConcurrencyServiceTests needed to be updated to reflect this architectural change and the new input interface.
Architecture Validation
The passing tests confirm:
findResources()Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.