Skip to content

failing @test_logs hits method error for record #50

Open
@kleinschmidt

Description

@kleinschmidt

When using @test_logs, if there is a test failure, ReTest throws a method error:

  Got exception outside of a @test
  MethodError: no method matching record(::ReTest.Testset.ReTestSet, ::Test.LogTestFailure)
  Closest candidates are:
    record(::ReTest.Testset.ReTestSet, ::Test.AbstractTestSet) at ~/.julia/packages/ReTest/WnRIG/src/testset.jl:100
    record(::ReTest.Testset.ReTestSet, ::Union{Test.Broken, Test.Error, Test.Fail}) at ~/.julia/packages/ReTest/WnRIG/src/testset.jl:93
    record(::Test.FallbackTestSet, ::Test.LogTestFailure) at ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Test/src/logging.jl:143
    ...
  Stacktrace:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions