Test-More / Test-More/test-more

Unclear error message

Open
#960 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Perl
Stars
149
Forks
98
PR merge metrics
No merged PRs in 30d

Description

use Test2::V0;

use threads;

threads->create(sub {
    ok 1, 'foo';
})->join;

The above script fails with Test2 must be fully loaded before you start a new thread! at a.pl line 7 thread 1.. It is not clear at all what "fully loaded" does mean, and this concept doesn't seem to exist in Test2 documentation.

It stops crashing when I either add use Test2::IPC; or call ok(1) before creating a new thread. Perhaps the error message should recommend doing that?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Perl script with and without Test2::IPC or the initial ok(1) call, then locate the code that emits the "fully loaded" error. Review the Test2 documentation for the loading concept. Done means the error explains the required initialization or recommends the relevant action clearly, with coverage for the reported script.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.