Skip to content

Add --modules parameter to cpan_random_tester.pl#697

Merged
fglock merged 1 commit intomasterfrom
feature/cpan-tester-module-list
May 9, 2026
Merged

Add --modules parameter to cpan_random_tester.pl#697
fglock merged 1 commit intomasterfrom
feature/cpan-tester-module-list

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 9, 2026

Summary

Add support for specifying a list of CPAN modules to test directly, instead of relying only on random selection.

Changes

  • Added --modules parameter that accepts either:
    • Comma-separated list: --modules Foo::Bar,Baz::Qux,JSON
    • File path: --modules modules.txt (one module per line, supports # comments)
  • New parse_module_list() helper function handles both formats
  • Updated logic to skip random selection when modules are specified
  • Updated help text with examples

Use Cases

  • Test specific modules that are known to be problematic
  • Regression testing of a fixed module
  • Batch testing of a curated list without random noise

Testing

Syntax check passes, help text updated with examples.

🤖 Generated with Claude Code

Allow specifying a list of CPAN modules to test instead of random selection:
- Supports comma-separated list: --modules Foo::Bar,Baz::Qux
- Supports file path: --modules modules.txt (one module per line, # for comments)
- Useful for targeted testing of specific modules or regressions

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@fglock fglock merged commit a0cb337 into master May 9, 2026
2 checks passed
@fglock fglock deleted the feature/cpan-tester-module-list branch May 9, 2026 16:39
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