Skip to content

Record a failing @test_logs as a failure instead of erroring#64

Open
JohnCobbler wants to merge 2 commits into
JuliaTesting:masterfrom
JohnCobbler:fix/50-record-logtestfailure
Open

Record a failing @test_logs as a failure instead of erroring#64
JohnCobbler wants to merge 2 commits into
JuliaTesting:masterfrom
JohnCobbler:fix/50-record-logtestfailure

Conversation

@JohnCobbler

Copy link
Copy Markdown

A failing @test_logs produces a Test.LogTestFailure, which is not a
Fail/Error/Broken, so ReTestSet had no record method for it and the
failure threw a MethodError instead of being reported.

Convert LogTestFailure to Fail in record, matching
Test.DefaultTestSet, so it is counted and printed like any other failure.

Adds a unit test on record/anyfailed/get_test_counts, and an integration
module whose failing @test_logs causes retest to throw TestSetException
(not MethodError).

Fixes #50

JohnCobbler and others added 2 commits June 6, 2026 01:44
A failing @test_logs produces a Test.LogTestFailure, which is not a
Fail/Error/Broken, so ReTestSet has no record method for it and the failure
throws a MethodError instead of being reported. Convert it to a Fail in
record, as Test.DefaultTestSet does, so it is counted and printed like any
other failure.

Co-authored-by: Claude <noreply@anthropic.com>
Integration module FailingTestLogs asserts retest throws TestSetException
instead of MethodError when @test_logs fails.
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.

failing @test_logs hits method error for record

1 participant