LoadError: UndefVarError: Test not defined

I’m trying to do the run unit test

using Base.Test

@test 1 + 1 == 2

julia runtests.jl gives me the error “LoadError: UndefVarError: Test not defined”

I’m using julia version 1.6.2, What am I missing?

1 Like

No need for Base.

using Test
@test 1 + 1 == 2
2 Likes