Skip to content

feat(validate): add --all flag to validate all example case files#1620

Open
adityaraut09 wants to merge 1 commit into
MFlowCode:masterfrom
adityaraut09:feat/validate-all-flag
Open

feat(validate): add --all flag to validate all example case files#1620
adityaraut09 wants to merge 1 commit into
MFlowCode:masterfrom
adityaraut09:feat/validate-all-flag

Conversation

@adityaraut09

Copy link
Copy Markdown

Closes #1529

Adds an --all flag to ./mfc.sh validate that loops through all example case files and reports which ones pass or fail, rather than requiring the user to check them one at a time manually.

Type of change

  • New feature

Changes

  • toolchain/mfc/cli/commands.py: made input positional optional (nargs="?"), added --all / -a flag to VALIDATE_COMMAND
  • toolchain/mfc/validate.py: added _validate_one() helper and --all branch that globs examples/**/case.py, validates each, and prints a pass/fail summary

Testing

Verified syntax with python3 -c "import ast; ast.parse(...)". Full integration test requires the MFC build environment.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.39%. Comparing base (9906fa6) to head (88d7a31).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1620   +/-   ##
=======================================
  Coverage   60.39%   60.39%           
=======================================
  Files          83       83           
  Lines       19854    19854           
  Branches     2955     2955           
=======================================
  Hits        11990    11990           
  Misses       5863     5863           
  Partials     2001     2001           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

All-File Validation for Toolchain

2 participants