Skip to content

fix: always modify test file for skipping, never touch MANIFEST#15

Draft
Koan-Bot wants to merge 1 commit intoPerl-Toolchain-Gang:mainfrom
Koan-Bot:koan.atoomic/fix-issue-7
Draft

fix: always modify test file for skipping, never touch MANIFEST#15
Koan-Bot wants to merge 1 commit intoPerl-Toolchain-Gang:mainfrom
Koan-Bot:koan.atoomic/fix-issue-7

Conversation

@Koan-Bot
Copy link

@Koan-Bot Koan-Bot commented Mar 19, 2026

Summary

When skipping tests in lib/, ext/, cpan/, or dist/, set_skip_tests() previously removed those files from the MANIFEST. This caused t/porting/manifest.t to fail because the MANIFEST no longer matched the actual files on disk.

Fixes #7

Changes

  • Removed the special-case branch in set_skip_tests() that diverted lib/ext/cpan/dist tests to change_manifest()
  • All tests are now skipped uniformly by prepending skip code to the test file itself
  • change_manifest() is preserved but no longer called
  • Updated t/smoker.t to verify the new behavior: all 5 test paths get skip code injected, MANIFEST stays unmodified

Test plan

  • perl -Ilib t/smoker.t — all 82 tests pass
  • prove -Ilib t/*.t — all 1607 tests pass, no regressions

Generated by Kōan /fix


Quality Report

Changes: 2 files changed, 19 insertions(+), 29 deletions(-)

Code scan: clean

Tests: skipped

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Previously, set_skip_tests() handled tests in lib/, ext/, cpan/, and
dist/ by removing them from the MANIFEST file. This caused
t/porting/manifest.t to fail because the MANIFEST no longer listed
files that were still present on disk.

Now all tests — regardless of directory — are skipped by prepending
the skip code directly to the test file, keeping the MANIFEST intact.
The change_manifest() helper is preserved for backwards compatibility
but is no longer called from set_skip_tests().

Fixes Perl-Toolchain-Gang#7

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
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.

Test skipping works in a less then optimal way

1 participant