Add test coverage for inspect command#335
Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom Feb 18, 2026
Merged
Conversation
The inspect command had no tests, which left a gap in our test coverage. Added 4 new tests covering: - Basic workflow inspection - JSON output format - Missing file error handling - Detection of missing source files All tests pass.
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive test coverage for the previously untested inspect command. The tests validate the command's ability to display workflow structure, handle JSON output, and report missing files. This addition significantly improves the test suite's completeness and provides regression protection for future changes to the inspect functionality.
Changes:
- Added four new test methods covering the inspect command's core functionality
- Tests verify normal output format, JSON output format, missing workflow file handling, and missing source file detection
- All tests follow established patterns from existing CLI tests in the same file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Added four user-focused tests to cover the previously untested
inspectcommand. The new tests exercise the command's normal output, JSON output, and error handling for missing workflow files and missing source files. These tests ensure theinspectcommand reports workflow structure, node/edge counts, and missing files reliably, and they prevent regressions in future changes.What changed:
New tests for basic inspection output, JSON output, missing workflow file, and missing source files.
Tests run with the existing test harness and follow project conventions.
Why:
inspecthad no automated coverage; these tests close that gap, improve confidence, and make future refactors safer.