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?

2 Likes

No need for Base.

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