The simplest way is to use the "runtests.jl" testing harness. cd test && julia runtests.jl euler
On Monday, March 31, 2014 5:52:39 PM UTC-4, Jacob Quinn wrote: > > The macro exists in the Base.Test module, so you need to > > using Base.Test > > First to bring it in to Main. > > -Jacob > On Mar 31, 2014 5:40 PM, "Fab HK" <[email protected]<javascript:>> > wrote: > >> Hi, when I want to run a test (from the test suite) from the command >> line, e.g. by saying ``julia test/euler.jl``, I get an error that @test is >> not defined. >> I could go into a REPL and load this and include that and what have you - >> is there a simpler way? >> >> Thanks >> Fab >> >> Fabians-MBA-15:julia frl$ julia test/euler.jl >> >> ERROR: @test not defined >> >> while loading ...../julia/test/euler.jl, in expression starting on line 7 >> >>
