Skip to content

test: modernize config.t to Test::More#58

Draft
toddr-bot wants to merge 1 commit into
mainfrom
koan.toddr.bot/modernize-config-test
Draft

test: modernize config.t to Test::More#58
toddr-bot wants to merge 1 commit into
mainfrom
koan.toddr.bot/modernize-config-test

Conversation

@toddr-bot
Copy link
Copy Markdown

What

Convert config.t from raw TAP output to Test::More — the last test file still using print "ok N".

Why

All other tests were modernized in PR #47. config.t was missed because it uses a different
testing pattern (spawning server children with config files). With this change, the entire test
suite uses Test::More consistently, and the stale Test module dependency can be removed from cpanfile.

How

  • Replace print "${ok}ok N\n" with ok() assertions and descriptive test names
  • Use plan tests => N with conditional count based on hostname resolution
  • Pass undef for numTests to Child() so Test::More owns the plan
  • Add use warnings
  • Remove requires 'Test' => '0' from cpanfile

Testing

Full test suite passes (76 tests across 18 files, 3 ithread tests skipped on this system).

🤖 Generated with Claude Code

config.t was the last test file still using raw TAP output (print "ok N").
Convert to Test::More with proper ok() assertions and descriptive test
names. Also remove the stale 'Test' dependency from cpanfile since all
tests now use Test::More exclusively.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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