Skip to content

Add tests for defaults-only, programmatic, and VCS copier generation#6

Merged
buddingengineers12345 merged 1 commit intomainfrom
cursor/repo-creation-stability-d6b4
Apr 2, 2026
Merged

Add tests for defaults-only, programmatic, and VCS copier generation#6
buddingengineers12345 merged 1 commit intomainfrom
cursor/repo-creation-stability-d6b4

Conversation

@buddingengineers12345
Copy link
Copy Markdown
Owner

Coverage gaps addressed

The existing tests covered copier copy . <dest> --data project_name=... but did not cover the example scenarios:

  • defaults-only CLI generation (--defaults without --data)
  • programmatic generation via copier.run_copy(...)
  • VCS-style template sources (git URL / gh: / gl: style)

What changed

  • Added three new tests in tests/test_template.py:
    • defaults-only CLI: copier copy . <dest> --trust --defaults --skip-tasks
    • programmatic local path: run_copy(".", <dest>, defaults=True, unsafe=True, skip_tasks=True)
    • VCS-style source (network-free): create a temporary git repo and run copier copy git+file://... <dest> --trust --defaults --skip-tasks

Why this approach

  • Uses --skip-tasks to keep CI fast/stable while still exercising Copier's rendering + source acquisition code paths.
  • Uses git+file:// to emulate the VCS code path without relying on external network.

Verification

  • just ci passes
Open in Web Open in Cursor 

Co-authored-by: buddingengineers12345 <buddingengineers12345@gmail.com>
@buddingengineers12345 buddingengineers12345 marked this pull request as ready for review April 2, 2026 00:41
@buddingengineers12345 buddingengineers12345 merged commit 9f94c80 into main Apr 2, 2026
3 checks passed
@buddingengineers12345 buddingengineers12345 deleted the cursor/repo-creation-stability-d6b4 branch April 2, 2026 22:03
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.

2 participants