Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`yath --rerun-failed` does not look at default log locaiton

Open
#283 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #305 by @Koan-Bot — closed without merging

Assessment

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

Research direction

Start by reproducing the commands using yath --rerun-failed and yath --rerun-failed=lastlog.jsonl, then trace the --rerun-failed option handling and its default log selection. Done means the option without an argument reads lastlog.jsonl and reruns only the failed test.

Written by the indexing model from the issue text.

Description

When running yath --rerun-failed I would expect the default log location (lastlog.jsonl) to be assumed, but this does not appear to be true.

To reproduce:

tove:/tmp$ mkdir yath-test
tove:/tmp$ cd yath-test/
tove:/tmp/yath-test$ mkdir t
tove:/tmp/yath-test$ echo "use Test::More; fail('no'); done_testing" > t/1.t
tove:/tmp/yath-test$ echo "use Test::More; pass('yes'); done_testing" > t/2.t
tove:/tmp/yath-test$ echo "use Test::More; pass('yes'); done_testing" > t/3.t
tove:/tmp/yath-test$ yath test -L

Now lastlog.jsonl exists, as a symlink to tmp space.

tove:/tmp/yath-test$ yath --rerun-failed

…and all four tests are run. But I instead I run:

tove:/tmp/yath-test$ yath --rerun-failed=lastlog.jsonl

…then only the failed one is run.

+----------------------------+----------+
| COMPONENT                  | VERSION  |
+----------------------------+----------+
| perl                       | v5.40.1  |
| App::Yath                  | 1.000156 |
| Test2::API                 | 1.302199 |
| Test2::Suite               | 0.000162 |
| Test::Builder              | 1.302199 |
| App::Yath::Plugin::Cover   | 1.000156 |
| App::Yath::Plugin::Git     | 1.000156 |
| App::Yath::Plugin::Notify  | 1.000156 |
| App::Yath::Plugin::SysInfo | 1.000156 |
| App::Yath::Plugin::YathUI  | 1.000156 |
+----------------------------+----------+
Dominant language
Perl
Stars
28
Forks
30
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from Test-More/Test2-Harness

All issues in Test-More/Test2-Harness

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.