This document outlines the commands to be tested to ensure the new project-aware snapshot functionality is working correctly and that other commands have not been affected.
- Create two dummy project directories in
tests/fixtures:project-aandproject-b. - Each project should contain a few dummy source files (e.g.,
main.py,utils.py). - Create a dummy governance plan file
plan.ymland a dummy task filetask.yml.
-
Create first snapshot for Project A:
poetry run codesage snapshot create ./project-a
-
Create second snapshot for Project A:
# (after making some changes to a file in project-a) poetry run codesage snapshot create ./project-a -
List snapshots for Project A:
poetry run codesage snapshot list --project project-a
Expected output: Should list v1 and v2.
-
Show snapshot v1 for Project A:
poetry run codesage snapshot show v1 --project project-a
-
Create first snapshot for Project B:
poetry run codesage snapshot create ./project-b
-
List snapshots for Project B:
poetry run codesage snapshot list --project project-b
Expected output: Should list only v1.
-
List snapshots for Project A again:
poetry run codesage snapshot list --project project-a
Expected output: Should still list v1 and v2, unaffected by Project B.
-
Cleanup snapshots for Project A (dry run):
poetry run codesage snapshot cleanup --project project-a --dry-run
-
Cleanup snapshots for Project A:
poetry run codesage snapshot cleanup --project project-a
-
Create a snapshot with an overridden project name:
poetry run codesage snapshot create ./project-a --project project-c
-
List snapshots for the overridden project name:
poetry run codesage snapshot list --project project-c
Expected output: Should list v1.
- Compare two snapshots within Project A:
poetry run codesage diff v1 v2 --project project-a
These commands were not expected to be changed, but we should run them to ensure they still work.
-
Analyze:
poetry run codesage analyze tests/fixtures/project-a
-
Config:
poetry run codesage config show
-
Scan:
poetry run codesage scan tests/fixtures/project-a
-
Governance Plan:
poetry run codesage governance-plan --snapshot-version v1 --project project-a --output plan.yml
-
LLM Suggest:
poetry run codesage llm-suggest --snapshot-version v1 --project project-a --output enriched_snapshot.yml
-
Jules Prompt (with plan):
poetry run codesage jules-prompt --plan plan.yml --task-id <task_id> --project project-a --snapshot-version v1
-
Jules Prompt (with task):
poetry run codesage jules-prompt --task task.yml --project project-a --snapshot-version v1