Skip to content

LoadError: UndefVarError: push_testset not defined in Test (Julia 1.13+) #113

@tkemmer

Description

@tkemmer

Test.push_testset(testset("Package"; verbose=verbose))

Test.push_testset has been removed in 65a2f91e19b9131e9d2a8513a635410d432cab0b, causing TestItemRunner to fail when used with Julia nightly:

     Testing Running tests...
ERROR: LoadError: UndefVarError: `push_testset` not defined in `Test`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
 [1] getproperty
   @ ./Base_compiler.jl:50 [inlined]
 [2] run_tests(path::String; filter::Nothing, verbose::Bool)
   @ TestItemRunner ~/.julia/packages/TestItemRunner/Q6zqe/src/TestItemRunner.jl:197
 [3] kwcall(::@NamedTuple{verbose::Bool}, ::typeof(TestItemRunner.run_tests), path::String)
   @ TestItemRunner ~/.julia/packages/TestItemRunner/Q6zqe/src/TestItemRunner.jl:133
 [4] top-level scope
   @ ~/work/BiochemicalAlgorithms.jl/BiochemicalAlgorithms.jl/test/runtests.jl:3
 [5] include(mapexpr::Function, mod::Module, _path::String)
   @ Base ./Base.jl:309
 [6] top-level scope
   @ none:6
 [7] eval(m::Module, e::Any)
   @ Core ./boot.jl:489
 [8] exec_options(opts::Base.JLOptions)
   @ Base ./client.jl:296
 [9] _start()
   @ Base ./client.jl:563

runtests.jl

using TestItemRunner

@run_package_tests verbose=true

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