KaykCaputo/oracletrace
[Tests]: Add end-to-end CLI smoke test (baseline -> compare) using examples/
開放
#49 建立於 2026年4月17日
enhancementgood first issuehelp wanted
倉庫指標
- 星標
- (21 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
Summary
Add a minimal end-to-end smoke test to validate the core CLI workflow: trace -> export JSON baseline -> export current -> compare.
Problem
There is no integration test that exercises the full CLI pipeline, so real workflows can break without being caught.
Proposed Solution
After examples/ exists (see #40), add a smoke test that:
- Generates
baseline.json - Generates
current.json - Runs
--compare baseline.jsonand asserts exit code + no crash + output files exist
Use tmp_path and subprocess.run.
Acceptance Criteria
- Smoke test runs in CI quickly
- Validates exit codes and output files
- Uses
examples/scripts as fixtures
Depends On
- #40 (examples/ directory)
Affected Files
tests/examples/