Skip to content

test(eval): cover --simulation flag on uipath debug#1633

Open
ajay-kesavan wants to merge 1 commit into
feat/debug-simulation-flagfrom
feat/debug-simulation-flag-tests
Open

test(eval): cover --simulation flag on uipath debug#1633
ajay-kesavan wants to merge 1 commit into
feat/debug-simulation-flagfrom
feat/debug-simulation-flag-tests

Conversation

@ajay-kesavan
Copy link
Copy Markdown

Summary

Stacked onto #1632. Adds TestDebugSimulationFlag mirroring the TestRunSimulation class introduced for uipath run --simulation in #1624.

Three cases:

  • Malformed --simulation JSON surfaces a clean error and never starts the runtime stack
  • A valid --simulation payload is parsed into SimulationConfig and routed through build_mocking_context; the on-disk simulation.json loader is bypassed
  • Without --simulation, cli_debug still delegates to load_simulation_config — existing disk-file behavior is preserved

Why stacked

Direct pushes to feat/debug-simulation-flag are blocked by the repo's "Copilot" ruleset (pull_request rule on ~ALL branches). Merging this PR adds the tests onto #1632's head.

Test plan

  • uv run pytest tests/cli/test_debug_simulation.py — 18 passed (3 new)
  • uv run pytest (full suite) — 1851 passed
  • ruff check and ruff format --check clean

🤖 Generated with Claude Code

Adds TestDebugSimulationFlag mirroring TestRunSimulation:

- Invalid --simulation JSON surfaces a clean error and does not start
  the runtime stack
- A valid --simulation payload is parsed into SimulationConfig and
  routed through build_mocking_context; the simulation.json disk
  loader is bypassed
- Without --simulation, cli_debug still delegates to
  load_simulation_config so existing on-disk simulation.json behavior
  is preserved

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant