Skip to content

Extract shared sandbox-project test helpers#2087

Merged
bbatsov merged 1 commit into
masterfrom
test/shared-project-helpers
Jul 8, 2026
Merged

Extract shared sandbox-project test helpers#2087
bbatsov merged 1 commit into
masterfrom
test/shared-project-helpers

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Pure dedup - the first (low-risk) half of the test-helper consolidation. No behavior change, 11 files touched, ~200 lines of copy-paste removed.

Moved into projectile-test-helpers:

  • projectile-test-project-root - the (file-truename (expand-file-name "project/")) incantation appeared ~48 times.
  • projectile-test-kill-project-buffers - three near-identical copies (the shared version kills the project buffers and both result buffers, a harmless superset).
  • projectile-test-use-plain-grep - three identical copies.
  • projectile-test-disk / projectile-test-disk-raw - the on-disk content readers, now available to every spec.

889 specs green, clean --warnings-as-errors, relint clean.

The bigger --with-project macro consolidation (four near-identical per-file macros) is the follow-up - it needs care around the case-handling bindings, so it's its own PR.

Collapse the copy-paste that had accumulated across the search/replace
and project specs into projectile-test-helpers:

- projectile-test-project-root - the (file-truename (expand-file-name
  "project/")) incantation appeared ~48 times.
- projectile-test-kill-project-buffers - three near-identical copies
  (the superset version kills the project buffers and both result buffers).
- projectile-test-use-plain-grep - three identical copies.
- projectile-test-disk / projectile-test-disk-raw - the on-disk content
  readers, now available to every spec.

No behavior change; 889 specs green.
@bbatsov bbatsov merged commit 6a55a18 into master Jul 8, 2026
9 of 10 checks passed
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