Skip to content

Comments

Add test coverage for inspect command#335

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
Sahil-u07:test/add-inspect-command-tests
Feb 18, 2026
Merged

Add test coverage for inspect command#335
pradeeban merged 1 commit intoControlCore-Project:devfrom
Sahil-u07:test/add-inspect-command-tests

Conversation

@Sahil-u07
Copy link

Added four user-focused tests to cover the previously untested inspect command. 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 the inspectcommand 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:

inspect had no automated coverage; these tests close that gap, improve confidence, and make future refactors safer.

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.
Copilot AI review requested due to automatic review settings February 15, 2026 00:13
Copy link

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

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.

@pradeeban pradeeban merged commit e2cae65 into ControlCore-Project:dev Feb 18, 2026
11 of 12 checks passed
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.

2 participants