Skip to content

Fix/auto commit contract and test discovery - #117

Open
MrTango wants to merge 2 commits into
masterfrom
fix/auto-commit-contract-and-test-discovery
Open

Fix/auto commit contract and test discovery#117
MrTango wants to merge 2 commits into
masterfrom
fix/auto-commit-contract-and-test-discovery

Conversation

@MrTango

@MrTango MrTango commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

run_evals.py passes --no-git on every case, so the default auto-commit path
had no coverage. run_git_evals.py runs the same commands with git enabled and
asserts, after each one, that the project is a repository, that
git status --porcelain is empty, and that the expected commit was created.

25 cases: create x 3, skill install --scope project, setup, and every
subtemplate plus zope_instance. Writes to workspaces-git/ and results-git/.
- setup now passes git_commit=config.auto_commit and not no_git, accepts
  --no-git, carries a chained --no-git from create, and echoes the commit
  message. It used to git init and commit even with auto_commit = false.
- skill install/update --scope project commits the installed skills, so the
  project is not left dirty for the next add. New git.commit_paths() commits
  only those paths: it never runs git init and never stages unrelated changes.
- The integration tests resolve the copier-templates checkout through
  tests.helpers.find_templates_checkout(), which knows this repo's
  develop/plone/src/copier-templates and the configured clone. Without it a
  plain "pytest -m integration" reported 1 passed / 2 skipped instead of 24.
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