juliajulia-pkg

What does runtests.jl do in Julia?


I have seen that many Julia projects seem to include a file in the test folder called "runtests.jl". Is there something significant about that file name or can I have my testing file called whatever I want?


Solution

  • As noted in the package manager docs, when you run test in the package manager while you have a particular package activated, it will default to looking for a runtests.jl file. From the docs, it does not appear there is a way to override this naming convention so it should be assumed the entry point for you unit tests should be the runtests.jl file.